From: Oliver Kiddle <opk@zsh.org>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-workers@zsh.org
Subject: Re: Why does zsh clear to end-of-screen after prompt?
Date: Tue, 19 Sep 2023 01:14:41 +0200 [thread overview]
Message-ID: <23391-1695078881.417127@hXqK.BiYQ.sk8c> (raw)
In-Reply-To: <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
next parent reply other threads:[~2023-09-18 23:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <ZOkGi5f6hPuk_1-b@louder-room.local>
[not found] ` <CAH+w=7ZQaJgvk=wLX5mVEC4XR3AP1kxZU+t6O88PZFAZ6p6w9Q@mail.gmail.com>
[not found] ` <ZOlOaISfwY6RFrfH@louder-room.local>
[not found] ` <CAH+w=7ba2eATAi3enewDJfwr5NVo0PPb0EtD8b_DKzeFFxXa4g@mail.gmail.com>
2023-09-18 23:14 ` Oliver Kiddle [this message]
2023-09-18 23:32 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=23391-1695078881.417127@hXqK.BiYQ.sk8c \
--to=opk@zsh.org \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).