Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why does zsh clear to end-of-screen after prompt?
- X-seq: zsh-workers 52159
- From: Oliver Kiddle <opk@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: Why does zsh clear to end-of-screen after prompt?
- Date: Tue, 19 Sep 2023 01:14:41 +0200
- Archived-at: <https://zsh.org/workers/52159>
- In-reply-to: <CAH+w=7ba2eATAi3enewDJfwr5NVo0PPb0EtD8b_DKzeFFxXa4g@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <ZOkGi5f6hPuk_1-b@louder-room.local> <CAH+w=7ZQaJgvk=wLX5mVEC4XR3AP1kxZU+t6O88PZFAZ6p6w9Q@mail.gmail.com> <ZOlOaISfwY6RFrfH@louder-room.local> <CAH+w=7ba2eATAi3enewDJfwr5NVo0PPb0EtD8b_DKzeFFxXa4g@mail.gmail.com>
[ moved to -workers ]
On 9 Sep, Bart Schaefer wrote:
> How about this, then? I'd completely forgotten about "zle -T" ...
>
> no_clr_eos () {
> emulate -L zsh
> if [[ $1 == cd ]]
> then
> REPLY=""
> elif [[ -n $2 ]]
> then
> REPLY=$(echotc "$@")
> else
> REPLY=$termcap[$1]
> fi
> }
The last 6 lines just restore what would be the default behaviour,
right?
Wouldn't it perhaps be helpful if there was an explicit way to fallback
to the default such as by returning an error status. The feature is
mostly only used by the test suite to my knowledge. I think I once used
the feature to send the parameters to a separate terminal for debug
purposes and could have done with it also keeping the defaults for that
use-case too.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author