From 00fbfc382425d1f20a84cd8897919836cc6254ee Mon Sep 17 00:00:00 2001 From: Kevin Lamonte Date: Thu, 17 Aug 2017 10:06:31 -0400 Subject: [PATCH] oops --- src/jexer/TTerminalWindow.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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; } /** -- 2.27.0