summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-12-18 21:54:24 +0000
committerLars Wirzenius <liw@liw.fi>2012-12-18 21:54:24 +0000
commit68ff5b35bb08facdca1907ab71ca16ba781278aa (patch)
tree0fdab2c9439da51668977579d2f63a7ca395dd44
parent9787129acc4c3798c9cbbc25316f1469f9faf6a1 (diff)
parent346d13dd7f17caa34a4f3aff3d55fca84d8c29bd (diff)
downloadttystatus-68ff5b35bb08facdca1907ab71ca16ba781278aa.tar.gz
Update display at once after terminal size changes
-rw-r--r--NEWS6
-rw-r--r--ttystatus/messager.py1
2 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 9abc83f..02abc3a 100644
--- a/NEWS
+++ b/NEWS
@@ -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.'''