From: Bart Schaefer <schaefer@brasslantern.com>
To: Oliver Kiddle <opk@zsh.org>
Cc: OG Code Poet <ogcodepoet@gmail.com>,
Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Read a line from user without clearing screen below the prompt while allowing user to use arrow keys to make edits in middle of line
Date: Sat, 31 Dec 2022 16:10:30 -0800 [thread overview]
Message-ID: <CAH+w=7Y4frt2Bvm0b6ui+L65ky23EguRyaUotQ1d73tNMOba7w@mail.gmail.com> (raw)
In-Reply-To: <87109-1672492415.579439@wMHr.mGJl.BpB2>
On Sat, Dec 31, 2022 at 5:14 AM Oliver Kiddle <opk@zsh.org> wrote:
>
> The first idea that came into my mind was to try setopt singlelinezle
That was my first thought too, and I also tried setting LINES=1 along
with it, but no help.
> I think the clearing from
> the cursor to the end of the window serves a purpose in general.
In fact I think it's issuing both move-to-first-column as well as
clear-to-end. It wants to know exactly what positions the prompt
occupies and have free rein over the rest.
Seems like it should be possible to do something with a tweaked
read-from-minibuffer as the vared initial-widget, but I think vared is
going to end up clearing at least the entire last line of the screen
no matter what.
prev parent reply other threads:[~2023-01-01 0:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-30 5:37 OG Code Poet
2022-12-30 8:58 ` Mikael Magnusson
2022-12-30 17:56 ` Bart Schaefer
2022-12-31 3:52 ` OG Code Poet
2022-12-31 5:20 ` Bart Schaefer
2022-12-31 5:44 ` OG Code Poet
2022-12-31 13:13 ` Oliver Kiddle
2023-01-01 0:10 ` Bart Schaefer [this message]
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='CAH+w=7Y4frt2Bvm0b6ui+L65ky23EguRyaUotQ1d73tNMOba7w@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=ogcodepoet@gmail.com \
--cc=opk@zsh.org \
--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).