[PATCH vncterm v2 3/3] Also parse DCS commands

Johannes Altmanninger aclopte at gmail.com
Thu Sep 25 08:15:42 CEST 2025


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 9830f21..e014818 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.51.0.167.g6ad8021821.dirty




More information about the pve-devel mailing list