From 543c077be3c523faefd65fa3f80d14f435130637 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Fri, 15 Aug 2025 14:48:10 +0200 Subject: [PATCH] [gdb/testsuite] Add Term::_csi_t Add support for: - Window manipulation (XTWINOPS) CSI t --- gdb/testsuite/lib/tuiterm.exp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 -- 2.47.3