Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Outputting colored zsh prompts from an external script



On Mar 25,  2:05pm, seanh wrote:
}
} So far this color issue is the only thing getting in my way...

Your python script needs to either output %F{color} / %K{color} instead
of the raw ANSI sequences, or (might be easier) put %{ and %} around the
ANSI.  Both methods tell zsh that this output is "zero-width" on the
terminal, so it doesn't count those bytes when determing how much screen
space the prompt uses.  See also %G in the manual.

-- 
Barton E. Schaefer



Messages sorted by: Reverse Date, Date, Thread, Author