oops
authorKevin Lamonte <kevin.lamonte@gmail.com>
Thu, 17 Aug 2017 14:06:31 +0000 (10:06 -0400)
committerKevin Lamonte <kevin.lamonte@gmail.com>
Thu, 17 Aug 2017 14:06:31 +0000 (10:06 -0400)
src/jexer/TTerminalWindow.java

index 165ab713119dfdf3cb81b6e9e03a2f7a590ebcf7..d1936535c63e5a41bc0a1a06eede35a20e7c5a4c 100644 (file)
@@ -354,7 +354,10 @@ public class TTerminalWindow extends TScrollableWindow
      * @return the number of columns in the display
      */
     public int getDisplayWidth() {
-        return getWidth() - 2;
+        if (ptypipe) {
+            return getWidth() - 2;
+        }
+        return 80;
     }
 
     /**
@@ -363,7 +366,10 @@ public class TTerminalWindow extends TScrollableWindow
      * @return the number of rows in the display
      */
     public int getDisplayHeight() {
-        return getHeight() - 2;
+        if (ptypipe) {
+            return getHeight() - 2;
+        }
+        return 24;
     }
 
     /**