Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] use clear-to-end to reduce trailing whitespace
- X-seq: zsh-workers 53330
- From: Oliver Kiddle <opk@xxxxxxx>
- To: Daniel Colascione <dancol@xxxxxxxxxx>
- Cc: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: [PATCH] use clear-to-end to reduce trailing whitespace
- Date: Sun, 26 Jan 2025 23:50:20 +0100
- Archived-at: <https://zsh.org/workers/53330>
- In-reply-to: <875xma9xad.fsf@dancol.org>
- List-id: <zsh-workers.zsh.org>
- References: <87ed121ui4.fsf@dancol.org> <CAH+w=7bXVUpVVZ-wauCQTchCJK60zaqCSZUV+KKQ93tNoe2VDQ@mail.gmail.com> <CAH+w=7aWgKLzQ6MZfsyEYabdGic0qX6tfsC4HX4g8vBAW-+Lpw@mail.gmail.com> <875xma9xad.fsf@dancol.org>
On 19 Jan, Daniel Colascione wrote:
> The attached new version of the patch should handle right prompts too. I
> tested it with both zero and non-zero right prompt margins.
Aside from right prompts, the other thing that comes to my mind
as needing to be tested is the ellipses that are printed when the
command-line is too big for the terminal.
After resizing the terminal to not be too large and then filling it with
text, I see issues with your patch. With the first patch, backspace on
a line that was longer that the terminal is wide caused issues. With
the second patch, I notice issues if I fill the command-line with more
lines than will fit. Then when I move the cursor up, at some point it
loses the prompt and replaces it with some of the text from the line.
I would speculate that this is caused by the terminal scrolling by one
line when that's not wanted. I'm mostly either using urxvt or foot.
I would also suggest applying a background colour to the entire text
entry area as that can show up problems that would not otherwise be
present or apparent.
I don't as such have objections to removing code that's only there for
terminals that have long ago ceased to be used.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author