We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbb0138 commit b8ad1bbCopy full SHA for b8ad1bb
1 file changed
drivers/cga/cga.go
@@ -21,6 +21,10 @@ func setCursorColumn(n int) {
21
getbackend().SetPos(pos)
22
}
23
24
+func setCursorHome() {
25
+ getbackend().SetPos(0)
26
+}
27
+
28
func eraseLine(method EraseMethod) {
29
backend := getbackend()
30
pos := backend.GetPos()
@@ -69,6 +73,7 @@ func writeCSI(action byte, params []string) {
69
73
// Hopefully nobody ever uses my fork if they expect that functionality
70
74
case 'J':
71
75
eraseLine(EraseMethod_All)
76
+ setCursorHome()
72
77
78
default:
79
panic("unsupported CSI action")
0 commit comments