Skip to content
Browse files

Use the provided terminal when determining the height / width in the …

…ConsoleReader
  • Loading branch information...
1 parent 0395d2e commit 7d7b91292a7b31dd3a7eff462627ca688e21493c Guillaume Nodet committed with headius Jul 9, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/jline/ConsoleReader.java
View
4 src/main/java/jline/ConsoleReader.java
@@ -331,7 +331,7 @@ public boolean getBellEnabled() {
* @return the width of the current terminal.
*/
public int getTermwidth() {
- return Terminal.setupTerminal().getTerminalWidth();
+ return getTerminal().getTerminalWidth();
}
/**
@@ -342,7 +342,7 @@ public int getTermwidth() {
* @return the height of the current terminal.
*/
public int getTermheight() {
- return Terminal.setupTerminal().getTerminalHeight();
+ return getTerminal().getTerminalHeight();
}
/**

0 comments on commit 7d7b912

Please sign in to comment.
Something went wrong with that request. Please try again.