X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjexer%2FTTerminalWindow.java;h=d1936535c63e5a41bc0a1a06eede35a20e7c5a4c;hb=24489803a611e99348e26cadedae1141f48c1a6c;hp=165ab713119dfdf3cb81b6e9e03a2f7a590ebcf7;hpb=aa77d68274fff56c0ceca162a687ea70795624ea;p=fanfix.git 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; } /**