[PATCH vncterm 4/4] Also parse DCS commands
Johannes Altmanninger
aclopte at gmail.com
Sat Aug 23 10:17:08 CEST 2025
This is used by some commands like XTGETTCAP.
Signed-off-by: Johannes Altmanninger <aclopte at gmail.com>
---
vncterm.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/vncterm.c b/vncterm.c
index 0c45a91..3d795d7 100644
--- a/vncterm.c
+++ b/vncterm.c
@@ -1218,6 +1218,7 @@ static void vncterm_putchar(vncTerm *vt, unicode ch) {
vt->tty_state = ESsquare;
break;
case ']':
+ case 'P':
vt->tty_state = ESnonstd;
break;
case '%':
@@ -1256,7 +1257,7 @@ static void vncterm_putchar(vncTerm *vt, unicode ch) {
break;
}
break;
- case ESnonstd: /* Operating System Controls */
+ case ESnonstd: /* Operating System Command or Device Control String */
vt->tty_state = ESnormal;
switch (ch) {
@@ -1279,7 +1280,7 @@ static void vncterm_putchar(vncTerm *vt, unicode ch) {
case ESosc:
if (ch == 0x9c || ch != 7) {
#ifdef DEBUG
- fprintf(stderr, "OSC sequence\n");
+ fprintf(stderr, "OSC/DCS sequence\n");
#endif
vt->tty_state = ESnormal;
}
--
2.50.1.194.g038143def7
More information about the pve-devel
mailing list