[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Incorrect positioning when long prompt contains ANSI escape sequence
From: |
Chet Ramey |
Subject: |
Re: Incorrect positioning when long prompt contains ANSI escape sequences + UTF-8 LANG |
Date: |
Tue, 13 Aug 2024 11:04:31 -0400 |
User-agent: |
Mozilla Thunderbird |
On 8/8/24 3:40 PM, Gioele Barabucci wrote:
Hi,
bash 5.2.21 produces severely wrong artifacts under the following conditions:
* the length of the prompt matches $COLUMN*2 + 1;
* the prompt contains ANSI escape sequences;
* the LANG variable is set to an installed UTF-8 locale.
When all these conditions are met, pressing the up arrow/down arrow will
place the cursor in the wrong spot. After that, all typed character will be
shown in the same place, overwriting each other.
This was fixed back in November, 2022, based on the original Debian bug
report. Search for the bug number in the change log to find the fix
description.
--
``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/