]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Handle auto_left_margin in tuiterm
authorTom de Vries <tdevries@suse.de>
Wed, 23 Jul 2025 19:11:41 +0000 (21:11 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 23 Jul 2025 19:11:41 +0000 (21:11 +0200)
commit93e5d03100d2f1dbd2aa2521b758f4f8c551d168
tree9149d01355eabe4b3469fc827f7b64ecb6c7de69
parentcff79e9708be8236211a33af46a215be9b5a91d5
[gdb/testsuite] Handle auto_left_margin in tuiterm

The terminal capability bw (aka as auto_left_margin) controls whether a
backspace at the start of a line wraps to the last column of the previous
line.

For tuiterm, we use TERM=ansi, and on linux at least that capability is off.

Consequently the current implementation of Term::_ctl_0x08 doesn't wrap.

Add this capability in Term::_ctl_0x08, and add a unit test.

Tested on aarch64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.tui/tuiterm.exp
gdb/testsuite/lib/tuiterm.exp