Explicitly ignore SCI rather than translating it into DECID. Should fix
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 22 Jan 2005 14:01:01 +0000 (14:01 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Sat, 22 Jan 2005 14:01:01 +0000 (14:01 +0000)
bug sci-is-not-decid.

git-svn-id: svn://svn.tartarus.org/sgt/putty@5164 cda61777-01e9-0310-a592-d414129be87e

terminal.c

index 36f59c3..1e60568 100644 (file)
@@ -2608,12 +2608,19 @@ static void term_out(Terminal *term)
            }
        }
 
-       /* How about C1 controls ? */
+       /*
+        * How about C1 controls? 
+        * Explicitly ignore SCI (0x9a), which we don't translate to DECID.
+        */
        if ((c & -32) == 0x80 && term->termstate < DO_CTRLS &&
            !term->vt52_mode && has_compat(VT220)) {
-           term->termstate = SEEN_ESC;
-           term->esc_query = FALSE;
-           c = '@' + (c & 0x1F);
+           if (c == 0x9a)
+               c = 0;
+           else {
+               term->termstate = SEEN_ESC;
+               term->esc_query = FALSE;
+               c = '@' + (c & 0x1F);
+           }
        }
 
        /* Or the GL control. */