diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-12-18 21:54:24 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-12-18 21:54:24 +0000 |
commit | 68ff5b35bb08facdca1907ab71ca16ba781278aa (patch) | |
tree | 0fdab2c9439da51668977579d2f63a7ca395dd44 | |
parent | 9787129acc4c3798c9cbbc25316f1469f9faf6a1 (diff) | |
parent | 346d13dd7f17caa34a4f3aff3d55fca84d8c29bd (diff) | |
download | ttystatus-68ff5b35bb08facdca1907ab71ca16ba781278aa.tar.gz |
Update display at once after terminal size changes
-rw-r--r-- | NEWS | 6 | ||||
-rw-r--r-- | ttystatus/messager.py | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -1,6 +1,12 @@ NEWS file for ttystatus ======================= +Version X.Y, released UNRELEASED +--------------------------------- + +* When the terminal size changes, ttystatus will now update the display + at once. + Version 0.21, released 2012-09-29 ----------------------------------- diff --git a/ttystatus/messager.py b/ttystatus/messager.py index 011c9a3..116300e 100644 --- a/ttystatus/messager.py +++ b/ttystatus/messager.py @@ -82,6 +82,7 @@ class Messager(object): self.clear() # Get new width. self.set_width(self._get_terminal_width()) + self._overwrite(self._last_msg) def _raw_write(self, string): '''Write raw data if output is terminal.''' |