Bash version: 5.3.20(1)-release System: aarch64, Android 10 (Termux built-in terminal and xterm on the same device)The cursor position is wrong after buffered arrow keys are consumed by readline when a foreground process exits.
The reproducer causes readline to start with the cursor not in column 0. Readline needs to know where the cursor is when it starts so it can make decisions about where and how to move the cursor when moving around the line. There is no portable way to discover the initial cursor position. There are some things you can do, depending on what your terminal can do. I posted one back in July: https://lists.gnu.org/archive/html/bug-bash/2026-07/msg00014.html Chet -- ``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
Description: OpenPGP digital signature
