From 139f5306f4cd06f13de3413b4fd06044e7239064 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Thu, 21 Jan 2016 00:22:52 +0100 Subject: [PATCH] Better support terminals behaving like urxvt (Fixes #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 4d65711..4be4bed 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: