bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prompt overwrites command output if prompt contains unicode characte


From: Chet Ramey
Subject: Re: Prompt overwrites command output if prompt contains unicode character and non-printing escape sequence
Date: Wed, 20 May 2026 11:25:13 -0400
User-agent: Mozilla Thunderbird

On 5/18/26 3:19 PM, Chet Ramey wrote:

Specifically, this looks to have been introduced as part of [1], after
which a \r is output while printing the prompt:

That fixed this:

https://lists.gnu.org/archive/html/bug-bash/2025-01/msg00002.html

I'll see if there's a way to accommodate both cases.

OK, I think I've fixed the problem that was making this not work.

The bottom line is
still that if you start with the cursor in some column other than 0,
you're going to eventually have faulty redisplay due to readline's
assumption that it starts with the cursor in column 0.

This is still true, and it will happen immediately after a long input line
wraps, if not sooner.


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]