From: Tom de Vries Date: Fri, 15 Aug 2025 12:48:10 +0000 (+0200) Subject: [gdb/testsuite] Add Term::_csi_t X-Git-Tag: gdb-17-branchpoint~293 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=543c077be3c523faefd65fa3f80d14f435130637;p=thirdparty%2Fbinutils-gdb.git [gdb/testsuite] Add Term::_csi_t Add support for: - Window manipulation (XTWINOPS) CSI t --- diff --git a/gdb/testsuite/lib/tuiterm.exp b/gdb/testsuite/lib/tuiterm.exp index 06217a1bf29..ce8af8d12a9 100644 --- a/gdb/testsuite/lib/tuiterm.exp +++ b/gdb/testsuite/lib/tuiterm.exp @@ -631,6 +631,23 @@ proc Term::_csi_l { args } { } } +# Window manipulation (XTWINOPS, CSI Ps ; Ps ; Ps t) +# +# https://invisible-island.net/xterm/ctlseqs/ctlseqs.html +proc Term::_csi_t { arg1 arg2 arg3 } { + if { $arg1 == 22 && $arg2 == 0 && $arg3 == 0 } { + _log "ignored: Save xterm icon and window title on stack" + return + } + + if { $arg1 == 23 && $arg2 == 0 && $arg3 == 0 } { + _log "ignored: Restore xterm icon and window title from stack" + return + } + + error unsupported +} + # DECSET (CSI ? h) # # https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking