diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-10-23 21:49:24 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-10-23 21:49:24 +0300 |
commit | 4d3769889e4c23bf240154c78c41dee9042b4fe5 (patch) | |
tree | 0131dc7a6e5c658526041948528f7124a4acc110 | |
parent | e32552cf8630bb1ffa01e51fe010523ca818bd67 (diff) | |
download | python-ttystatus-4d3769889e4c23bf240154c78c41dee9042b4fe5.tar.gz |
Fix area clearing
-rw-r--r-- | NEWS | 7 | ||||
-rw-r--r-- | ttystatus/area.py | 3 |
2 files changed, 9 insertions, 1 deletions
@@ -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) |