tarantool / try

try.tarantool.org scripts
Other
3 stars 4 forks source link

display a tip about Shift+Enter near the input area #9

Open mejedi opened 8 years ago

mejedi commented 8 years ago

Sometimes input spans multiple lines, ex: function declarations. There is a delimiter thing but it is less then convenient. Tarantool implemented delimiter-less parsing.

In try.tarantool.org a different method is used. Shift+Enter starts a new line without submitting the input. However the information about this feature is nowhere to be seen. The only way one can find about it is invoking console.delimiter(): in try the function prints a tip about Shift+Enter and does nothing besides that.

This is not reliable anymore, since normally console.delimiter() is unnecessary and no one is going to know about it.