diff options
author | Tom de Vries <tdevries@suse.de> | 2025-08-15 14:48:10 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2025-08-15 14:48:10 +0200 |
commit | 36f8b9785af3c52b745af7174cbe229934dc1cd5 (patch) | |
tree | 3b1436bf0ffdcbe04ee9e3d44b8254cdeb72adce | |
parent | 0ab4b22a01ac6044c4e323e423755d1171f20ec6 (diff) | |
download | binutils-36f8b9785af3c52b745af7174cbe229934dc1cd5.zip binutils-36f8b9785af3c52b745af7174cbe229934dc1cd5.tar.gz binutils-36f8b9785af3c52b745af7174cbe229934dc1cd5.tar.bz2 |
[gdb/testsuite] Add Term::_esc_0x3d and Term::_esc_0x3e
Add support for:
- DECKPAM (Application Keypad)
ESC =
- DECKPNM (Normal Keypad)
ESC >
-rw-r--r-- | gdb/testsuite/lib/tuiterm.exp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/tuiterm.exp b/gdb/testsuite/lib/tuiterm.exp index 005583d..1d60a07 100644 --- a/gdb/testsuite/lib/tuiterm.exp +++ b/gdb/testsuite/lib/tuiterm.exp @@ -186,6 +186,20 @@ proc Term::_esc_0x28_0 {} { _log "ignored: G0: DEC Special Character and Line Drawing Set" } +# DECKPAM (Application Keypad, ESC =) +# +# https://vt100.net/docs/vt510-rm/DECKPAM.html +proc Term::_esc_0x3d {} { + _log "ignored: Application Keypad" +} + +# DECKPNM (Normal Keypad, ESC >) +# +# https://vt100.net/docs/vt510-rm/DECKPNM.html +proc Term::_esc_0x3e {} { + _log "ignored: Normal Keypad" +} + # Insert Character. # # https://vt100.net/docs/vt510-rm/ICH.html @@ -998,6 +1012,11 @@ proc Term::accept_gdb_output { } { set cmd $expect_out(2,string) eval _esc_0x${hexval}_$cmd } + -re "^\x1b(\[=>\])" { + scan $expect_out(1,string) %c val + set hexval [format "%02x" $val] + _esc_0x$hexval + } -re "^\x1b\\\[(\\??)(\[0-9;\]*)(\[a-zA-Z@`\])" { set prefix $expect_out(1,string) set cmd $expect_out(3,string) |