lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Mar 3, 2016 at 12:48 PM, Jonathan Goble <jcgoble3@gmail.com> wrote:
On Thu, Mar 3, 2016 at 6:49 AM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
> We have considered removing this feature, as it seems that very few
> people use it (even less now, as it is not documented :-) and its
> benefits to the language seem quite small (if any). But in the end
> we did not reach a final decision and so it was left as it is now
> (implemented but not documented).

I use it via LUA_INIT, to mimic the Python interactive prompts ('>>> '
and '... '). For me, it's simply personal preference.


I use it as well:

_PROMPT = "\027[38;5;10m; \027[0m"
_PROMPT2 = "\027[38;5;10m;; \027[0m"

That turns the prompt into a coloured semicolon, which is handy when I want to copy and paste several lines for testing, since the semicolon does nothing, whereas the standard prompt causes a syntax error.

--
Sent from my Game Boy.