[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Incorrect positioning when long prompt contains ANSI escape sequence
From: |
Gioele Barabucci |
Subject: |
Re: Incorrect positioning when long prompt contains ANSI escape sequences + UTF-8 LANG |
Date: |
Sat, 10 Aug 2024 10:35:45 +0200 |
User-agent: |
Mozilla Thunderbird |
On 09/08/24 10:18, Martin D Kealey wrote:
Does this problem occur with other versions of Bash?
Hi Martin,
thank you for the detailed troubleshooting instructions.
This problem occurs with both Bash 5.0.17 (Ubuntu) and 5.2.21 (Debian)
With other versions of libreadline.so?
I'm currently not able to test with other versions of readline.
With other terminal emulators?
These artifacts can be seen using the aforementioned versions of Bash
inside xterm 353 and gnome-terminal 3.36.2.
1. report the output from these commands:
echo term=$TERM
e=( enabled disabled )
tput am ; echo right-auto-margin=${e[$?]:-$?}
tput bw ; echo left-auto-margin=${e[$?]:-$?}
tput sam ; echo semi-auto-margin=${e[$?]:-$?}
For all four combinations:
term=xterm-256color
right-auto-margin=enabled
left-auto-margin=disabled
semi-auto-margin=disabled
2. report the active auto-margin setting in your terminal emulator, at
the point where you observe the issue (and before entering or erasing
anything)
I haven't found a way to discover that for gnome-terminal.
For xterm, before and after observing this issue:
* Enable Auto Wraparound: true
* Enable Reverse Wraparound: false
Regards,
--
Gioele Barabucci