Fix a bug where left area on the first line was not always cleared

This commit is contained in:
Christian Rocha
2020-06-17 14:28:08 -04:00
parent debaf312f7
commit 8539cfcf8c
3 changed files with 16 additions and 4 deletions

View File

@@ -38,3 +38,7 @@ func restoreCursorPosition(w io.Writer) {
func changeScrollingRegion(w io.Writer, top, bottom int) {
fmt.Fprintf(w, te.CSI+te.ChangeScrollingRegionSeq, top, bottom)
}
func cursorBack(w io.Writer, n int) {
fmt.Fprintf(w, te.CSI+te.CursorBackSeq, n)
}