[Swift-commit] r2816 - trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/tui

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Sat Apr 4 16:14:02 CDT 2009


Author: hategan
Date: 2009-04-04 16:13:59 -0500 (Sat, 04 Apr 2009)
New Revision: 2816

Modified:
   trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/tui/ANSIContext.java
Log:
HOME and END were not handled properly

Modified: trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/tui/ANSIContext.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/tui/ANSIContext.java	2009-04-04 21:12:40 UTC (rev 2815)
+++ trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/tui/ANSIContext.java	2009-04-04 21:13:59 UTC (rev 2816)
@@ -284,7 +284,7 @@
                     }
                     else if (c == '[') {
                         int c0 = read();
-                        if (c0 <= 54) {
+                        if (c0 <= 56) {
                             int c1 = read();
                             if (c1 == '~') {
                                 key = new Key(0, Key.KEYPAD2 + c0);
@@ -578,4 +578,9 @@
     public void setDoubleBuffered(boolean doubleBuffered) {
         this.doubleBuffered = doubleBuffered;
     }
+
+    public void setCursorVisible(boolean b) throws IOException {
+        os.write(ANSI.cursorVisible(b));
+        os.flush();
+    }
 }




More information about the Swift-commit mailing list