]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Fix Term::_csi_m with no args
authorTom de Vries <tdevries@suse.de>
Wed, 23 Jul 2025 20:14:58 +0000 (22:14 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 23 Jul 2025 20:14:58 +0000 (22:14 +0200)
commit6a82917ae30bfb9b778644a6b19d8d79ab04a068
tree46ad786b3a8e2c01d73bbbd0f51ffef264776948
parent93e5d03100d2f1dbd2aa2521b758f4f8c551d168
[gdb/testsuite] Fix Term::_csi_m with no args

When calling Term::_csi_m with no args, default behaviour needs to be applied,
which is equivalent to "Term::_csi_m 0" [1].

However, while "Term::_csi_m 0" works, as well as 'Term::_csi_m ""', calling
Term::_csi_m with no args has no effect.

Fix this by implementing the default behaviour in Term::_csi_m.

Tested on aarch64-linux.

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