Skip to content

Commit 6b00ba3

Browse files
committed
ESC_ERASE_DISPLAY as constant
1 parent 07d3557 commit 6b00ba3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

term_misc.go

+6-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ import (
1212
"golang.org/x/term"
1313
)
1414

15-
var (
15+
const (
1616
ESC_ERASE_DISPLAY = "\x1b[2J\x1b[0;0H"
17-
E_NON_TTY = errors.New("NON TTY")
18-
E_TIMED_OUT = errors.New("TERM RESPONSE TIMED OUT")
17+
)
18+
19+
var (
20+
E_NON_TTY = errors.New("NON TTY")
21+
E_TIMED_OUT = errors.New("TERM RESPONSE TIMED OUT")
1922
)
2023

2124
func IsTmuxScreen() bool {

0 commit comments

Comments
 (0)