git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#19 TField fixes
[fanfix.git]
/
src
/
jexer
/
TTerminalWindow.java
diff --git
a/src/jexer/TTerminalWindow.java
b/src/jexer/TTerminalWindow.java
index 165ab713119dfdf3cb81b6e9e03a2f7a590ebcf7..d1936535c63e5a41bc0a1a06eede35a20e7c5a4c 100644
(file)
--- 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 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 the number of rows in the display
*/
public int getDisplayHeight() {
- return getHeight() - 2;
+ if (ptypipe) {
+ return getHeight() - 2;
+ }
+ return 24;
}
/**
}
/**