From: Kevin Lamonte Date: Thu, 17 Aug 2017 14:06:31 +0000 (-0400) Subject: oops X-Git-Tag: fanfix-swing-0.0.1~12^2~13^2~232 X-Git-Url: http://git.nikiroo.be/?a=commitdiff_plain;h=00fbfc382425d1f20a84cd8897919836cc6254ee;p=fanfix-swing.git oops --- diff --git a/src/jexer/TTerminalWindow.java b/src/jexer/TTerminalWindow.java index 165ab713..d1936535 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; } /**