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

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Mon Sep 16 02:03:25 CDT 2013


Author: hategan
Date: 2013-09-16 02:03:25 -0500 (Mon, 16 Sep 2013)
New Revision: 7068

Modified:
   trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/tui/ANSIContext.java
Log:
try to move the cursor to the bottom of the screen on exit in TUI

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	2013-09-16 07:02:28 UTC (rev 7067)
+++ trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/tui/ANSIContext.java	2013-09-16 07:03:25 UTC (rev 7068)
@@ -687,6 +687,10 @@
     public void exit() {
         done = true;
         try {
+            Screen scr = getScreen();
+            if (screen != null) {
+                moveTo(0, getScreen().getHeight() - 1);
+            }
             os.write(ANSI.cursorVisible(true));
             os.flush();
         }




More information about the Swift-commit mailing list