From: Kevin Lamonte Date: Thu, 17 Aug 2017 14:06:31 +0000 (-0400) Subject: oops X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=00fbfc382425d1f20a84cd8897919836cc6254ee;p=fanfix-jexer.git oops --- diff --git a/src/jexer/TTerminalWindow.java b/src/jexer/TTerminalWindow.java index 165ab71..d193653 100644 --- a/src/jexer/TTerminalWindow.java +++ b/src/jexer/TTerminalWindow.java @@ -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; } /**