]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Handle Horizontal Position Absolute in tuiterm
authorTom de Vries <tdevries@suse.de>
Wed, 23 Jul 2025 18:28:46 +0000 (20:28 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 23 Jul 2025 18:28:46 +0000 (20:28 +0200)
commit3786ec669c6075a5c5cb99efe0c369b7a07ca8d3
tree87c413be9ce965fde71c8b39624e0d68b05f3ee3
parent63338cd5683d7d48a8bfca8c026543566d3f461b
[gdb/testsuite] Handle Horizontal Position Absolute in tuiterm

I ran the tui testsuite on freebsd with TERM=ansiw, and investigated the first
failure, in test-case gdb.tui/tui-init-source.exp.

The problem turned out to be the lack of handling a Horizontal Position
Absolute [1] sequence "^[[80`" in tuiterm.

Add Term::_csi_`, forwarding to Term::_csi_G which handles Cursor Horizontal
Absolute [2].

Tested on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
[1] https://vt100.net/docs/vt510-rm/HPA.html
[2] https://vt100.net/docs/vt510-rm/CHA.html
gdb/testsuite/gdb.tui/tuiterm.exp
gdb/testsuite/lib/tuiterm.exp