lua-users home
lua-l archive

Re: Usage of _PROMPT and _PROMPT2

[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 '"





AltStyle によって変換されたページ (->オリジナル) /