summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-10-23 21:49:24 +0300
committerLars Wirzenius <liw@liw.fi>2015-10-23 21:49:24 +0300
commit4d3769889e4c23bf240154c78c41dee9042b4fe5 (patch)
tree0131dc7a6e5c658526041948528f7124a4acc110
parente32552cf8630bb1ffa01e51fe010523ca818bd67 (diff)
downloadttystatus-4d3769889e4c23bf240154c78c41dee9042b4fe5.tar.gz
Fix area clearing
-rw-r--r--NEWS7
-rw-r--r--ttystatus/area.py3
2 files changed, 9 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 5073b1e..3a1a4ea 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,13 @@
NEWS file for ttystatus
=======================
+Version 0.31, released UNRELEASED
+---------------------------------
+
+* Fix bug in how areas on the terminal are erased. This exhibited
+ itself by the `TerminalStatus.notify` method not removing an
+ existing status message before writing out the notification.
+
Version 0.30, released 2015-10-17
---------------------------------
diff --git a/ttystatus/area.py b/ttystatus/area.py
index 4e59fd8..574ea1b 100644
--- a/ttystatus/area.py
+++ b/ttystatus/area.py
@@ -74,5 +74,6 @@ class AreaManager(object):
'''
up = self._terminal.get_up_sequence()
+ cr = self._terminal.get_carriage_return_sequence()
erase = self._terminal.get_erase_line_sequence()
- self._terminal.write((erase + up) * (num_lines - 1) + erase)
+ self._terminal.write((cr + erase + up) * (num_lines - 1) + cr + erase)