lua-users home
lua-l archive

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


On Wed, Mar 9, 2016 at 12:08 AM, Rena <hyperhacker@gmail.com> wrote:
_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.

Clever!

But multiline statement may be vitiated by a semicolon.
What about spaces with coloured background?
export LUA_INIT="_PROMPT='\27[32m;\27[0m '_PROMPT2='\27[45m \27[0m '"