]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Add Term::_csi_t
authorTom de Vries <tdevries@suse.de>
Fri, 15 Aug 2025 12:48:10 +0000 (14:48 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 15 Aug 2025 12:48:10 +0000 (14:48 +0200)
Add support for:
- Window manipulation (XTWINOPS)
  CSI t

gdb/testsuite/lib/tuiterm.exp

index 06217a1bf2921121e2403594d561a0057cfc1a08..ce8af8d12a9f206bfc3be44841a0a7052ee7214f 100644 (file)
@@ -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