Skip to content

Commit

Permalink
Better support terminals behaving like urxvt (#101).
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
adam-waldenberg committed Feb 3, 2016
1 parent 738d6a1 commit a6dd07a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitinspector/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def ioctl_get_window_size(file_descriptor):
return int(size[1]), int(size[0])

def clear_row():
print("\b" * 200, end="")
print("\r", end="")

def skip_escapes(skip):
if skip:
Expand Down

0 comments on commit a6dd07a

Please sign in to comment.