diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-10-17 18:35:24 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-10-17 18:35:24 +0300 |
commit | 7541269be30f3d474bcee819c6f9e12373101a26 (patch) | |
tree | 66a2ca56f0731368c84a3e759d8f67c25e690e48 | |
parent | 242462fb7aed3305399ef2edd53a2db14c6e8ea2 (diff) | |
download | ttystatus-7541269be30f3d474bcee819c6f9e12373101a26.tar.gz |
Fix to use new PhysicalTerminal get_size method
-rw-r--r-- | ttystatus/area.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ttystatus/area.py b/ttystatus/area.py index d32a41b..c4e1aab 100644 --- a/ttystatus/area.py +++ b/ttystatus/area.py @@ -25,7 +25,8 @@ class AreaManager(object): self._terminal = terminal def get_max_line_length(self): - return self._terminal.get_width() - 1 + width, _ = self._terminal.get_size() + return width - 1 def make_space(self, num_lines): '''Make space for a message needing a given number of lines. |