Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: reinventing print_exit_value
- X-seq: zsh-users 9027
- From: Christian Taylor <cht@xxxxxxxxx>
- To: "zsh-users" <zsh-users@xxxxxxxxxx>
- Subject: Re: reinventing print_exit_value
- Date: Tue, 5 Jul 2005 00:32:27 +0200
- In-reply-to: <1050704143242.ZM12445@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <200507032356.17308.cht@xxxxxxxxx> <1050704143242.ZM12445@xxxxxxxxxxxxxxxxxxxxxxx>
Bart Schaefer wrote:
> On Jul 3, 11:56pm, Christian Taylor wrote:
> }
> } However: is there a simpler way to achieve this? My solution seems a bit
> } inelegant to me.
>
> How about this way of putting it into the prompt?
>
> PS1="%{%(0?..$(echotc DO 1)$(echotc sc)
> $(echotc rc)$(echotc UP 1))%}%# %{%(0?..$(echotc sc)
> (%?%)$(echotc rc))%}"
Thanks, I didn't know about echotc (and echoti), in fact it didn't occur to me
that I could manipulate the cursor position directly. This has given me
something new to play with :)
Christian
Messages sorted by:
Reverse Date,
Date,
Thread,
Author