Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PROMPT escape sequences
- X-seq: zsh-users 11954
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: PROMPT escape sequences
- Date: Sun, 07 Oct 2007 20:12:52 -0700
- In-reply-to: <20071008012219.GA595@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20071007103407.33577.qmail@xxxxxxxxxxx> <071007103242.ZM23816@xxxxxxxxxxxxxxxxxxxxxx> <20071008012219.GA595@xxxxxxxxxxxxxxx>
On Oct 8, 11:22am, Geoff Wing wrote:
} Subject: Re: PROMPT escape sequences
}
} On Monday 2007-10-08 10:40 +1000, Bart Schaefer output:
} :It "works" for %S because of a quirk in the way some terminals (xterm
} :included) implement "standout mode", not because of anything zsh does
} :differently.
}
} Well, actually, it should be handling these correctly. For bold,
} standout and underline.
Hm. If I do, in my xterm,
% PS1='verylongstring%#%S '
then the entire prompt, including the "verylongstring%", appears in
reverse video. Are you saying that it's ZLE that's spreading the
standout mode to the left as well as to the right, and not just a
quirk of xterm?
To get what I'd expect, it's necessary to explicitly put in %s at
the beginning of the prompt.
% PS1='%sverylongstring%#%S '
Further, if I type something at that prompt and then backspace over
it, the reverse video gets left behind where the erased characters
used to be.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author