From a6dd07a394f619e6e310f2ed4ec7b25fafbf0c07 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Wed, 3 Feb 2016 13:34:16 +0100 Subject: [PATCH] Better support terminals behaving like urxvt (#101). This terminal was allowing backspaces (\b) to bypass column zero on the current row, completely breaking the current way gitinspector was clearing text outputted to the currently active row. --- gitinspector/terminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitinspector/terminal.py b/gitinspector/terminal.py index f51acfa..ecb8cc8 100644 --- a/gitinspector/terminal.py +++ b/gitinspector/terminal.py @@ -77,7 +77,7 @@ def __get_size_linux__(): return int(size[1]), int(size[0]) def clear_row(): - print("\b" * 200, end="") + print("\r", end="") def skip_escapes(skip): if skip: