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

Re: prompt and prompt_cr option



On Mon, Oct 11, 2004 at 03:11:43PM -0700, Bart Schaefer wrote:

> For certain types of terminals you might be able to query the current 
> cursor position and do something clever when it is not in column zero, but 
> it's been deemed more trouble than it's worth to have ZLE attempt to 
> determine whether the terminal has support for this and then to make use 
> of that information.  (Querying the terminal involves sending a control 
> string and then reading back a response, which is unreliable because it 
> can be garbled by user type-ahead or other interference.)

On the other hand, you could write a precmd function that did this and spit
out an extra newline if necessary (and set nopromptcr), no?  If so, that
might be worth adding to the Misc directory, as it's such a FAQ.

Danek



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