Re: Prompt overwrites command output if prompt contains unicode character and non-printing escape sequence

Chet Ramey <[email protected]> Wed, 20 May 2026 11:25:13 -0400
Newsgroups gmane.comp.shells.bash.bugs
Organization ITS, Case Western Reserve University
Message-ID <[email protected]>
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    [email protected]    http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc (application/pgp-signature, 203 B)
-----BEGIN PGP SIGNATURE-----

wmMEABEIACMWIQR8ATX7CIqvbGbGULm7WGnwZOp0qwUCag3SWQUDAAAAAAAKCRC7WGnwZOp0q1vU
AJ9UlDwUlXdOqetW7bMwkV5oGy2G8wCfbfyr9ipTTT3ORgocD2pdRJdE2KI=
=SRTK
-----END PGP SIGNATURE-----