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

Re: reinventing print_exit_value



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