misc
[fanfix.git] / src / jexer / tterminal / ECMA48.java
index 361a92f674787168917bda129d66e98460d37ff8..7d03db1372aee15f9508000fbcd9585137ce41de 100644 (file)
@@ -871,10 +871,10 @@ public class ECMA48 implements Runnable {
         case XTERM:
             // "I am a VT220" - 7 bit version
             if (!s8c1t) {
-                return "\033[?62;1;6;9;4c";
+                return "\033[?62;1;6;9;4;22c";
             }
             // "I am a VT220" - 8 bit version
-            return "\u009b?62;1;6;9;4c";
+            return "\u009b?62;1;6;9;4;22c";
         default:
             throw new IllegalArgumentException("Invalid device type: " + type);
         }
@@ -1806,6 +1806,9 @@ public class ECMA48 implements Runnable {
                 // Local echo for everything else
                 printCharacter(keypress.getChar());
             }
+            if (displayListener != null) {
+                displayListener.displayChanged();
+            }
         }
 
         if ((newLineMode == true) && (keypress.equals(kbEnter))) {
@@ -6752,17 +6755,20 @@ public class ECMA48 implements Runnable {
             }
 
             // 00-17, 19, 1C-1F, 20-7E   --> put
-            // TODO
             if (ch <= 0x17) {
+                // We ignore all DCS except sixel.
                 return;
             }
             if (ch == 0x19) {
+                // We ignore all DCS except sixel.
                 return;
             }
             if ((ch >= 0x1C) && (ch <= 0x1F)) {
+                // We ignore all DCS except sixel.
                 return;
             }
             if ((ch >= 0x20) && (ch <= 0x7E)) {
+                // We ignore all DCS except sixel.
                 return;
             }