Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: prompt and prompt_cr option
- X-seq: zsh-workers 20471
- From: Danek Duvall <duvall@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: prompt and prompt_cr option
- Date: Mon, 11 Oct 2004 16:28:57 -0700
- Cc: Jordan Breeding <jordan.breeding@xxxxxxx>
- In-reply-to: <Pine.LNX.4.61.0410111456360.9416@xxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Danek Duvall <duvall@xxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxx, Jordan Breeding <jordan.breeding@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <546D60C2-1A06-11D9-B624-000A95A6C222@xxxxxxx> <Pine.LNX.4.61.0410111456360.9416@xxxxxxxxxxxxxxxxxx>
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