process ansi codes also out of screen
This commit is contained in:
parent
6e869bfa0e
commit
33fb6f0d47
6
ui.go
6
ui.go
@ -225,12 +225,10 @@ func (win *win) print(x, y int, fg, bg termbox.Attribute, s string) (termbox.Att
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if x >= win.w {
|
if x < win.w {
|
||||||
break
|
termbox.SetCell(win.x+x, win.y+y, r, fg, bg)
|
||||||
}
|
}
|
||||||
|
|
||||||
termbox.SetCell(win.x+x, win.y+y, r, fg, bg)
|
|
||||||
|
|
||||||
i += w - 1
|
i += w - 1
|
||||||
|
|
||||||
if r == '\t' {
|
if r == '\t' {
|
||||||
|
Loading…
Reference in New Issue
Block a user