Support ANSI code for clearing the rest of the line (ESC[0K)

Some programs use it to set the background color for the whole line.

  fzf --preview "printf 'normal \x1b[42mgreen\x1b[0K \x1b[43myellow\x1b[m\nnormal again'"

  fzf --preview 'delta <(echo foo) <(echo bar) < /dev/tty'

Fix #2249
This commit is contained in:
Junegunn Choi committed 2020-11-25 01:49:48 +09:00
1 parent 3fe8eeedc5
commit 3829eab1cf
3 files changed
+21 -7

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
package tui
type Attr int
type Attr int32
func HasFullscreenRenderer() bool {
return false