From 7541269be30f3d474bcee819c6f9e12373101a26 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 17 Oct 2015 18:35:24 +0300 Subject: Fix to use new PhysicalTerminal get_size method --- ttystatus/area.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ttystatus') 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. -- cgit v1.2.1