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.
This commit is contained in:
Adam Waldenberg 2016-02-03 13:34:16 +01:00
parent 738d6a1195
commit a6dd07a394

View file

@ -77,7 +77,7 @@ def __get_size_linux__():
return int(size[1]), int(size[0]) return int(size[1]), int(size[0])
def clear_row(): def clear_row():
print("\b" * 200, end="") print("\r", end="")
def skip_escapes(skip): def skip_escapes(skip):
if skip: if skip: