incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [04/20] git commit: Fixed BLUR-178
Date Mon, 05 Aug 2013 18:56:41 GMT
Fixed BLUR-178


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/0c864ec5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/0c864ec5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/0c864ec5

Branch: refs/heads/0.2.0-newtypesystem
Commit: 0c864ec58821df4afb53e78188da0d192de713f2
Parents: 4a6699d
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Thu Aug 1 16:06:44 2013 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Thu Aug 1 16:06:44 2013 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/blur/shell/TopCommand.java | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/0c864ec5/blur-shell/src/main/java/org/apache/blur/shell/TopCommand.java
----------------------------------------------------------------------
diff --git a/blur-shell/src/main/java/org/apache/blur/shell/TopCommand.java b/blur-shell/src/main/java/org/apache/blur/shell/TopCommand.java
index 6b1d508..2280e61 100644
--- a/blur-shell/src/main/java/org/apache/blur/shell/TopCommand.java
+++ b/blur-shell/src/main/java/org/apache/blur/shell/TopCommand.java
@@ -200,6 +200,15 @@ public class TopCommand extends Command {
           }
         }
       }
+      if (reader != null) {
+        try {
+          reader.clearScreen();
+        } catch (IOException e) {
+          if (Main.debug) {
+            e.printStackTrace();
+          }
+        }
+      }
       out.print(output.toString());
       out.flush();
       if (reader != null) {
@@ -210,13 +219,6 @@ public class TopCommand extends Command {
         } catch (InterruptedException e) {
           return;
         }
-        try {
-          reader.clearScreen();
-        } catch (IOException e) {
-          if (Main.debug) {
-            e.printStackTrace();
-          }
-        }
         Terminal terminal = reader.getTerminal();
         _height = terminal.getHeight() - 2;
         _width = terminal.getWidth() - 2;


Mime
View raw message