We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d948bc commit 5913cf6Copy full SHA for 5913cf6
tinyterm.go
@@ -208,6 +208,7 @@ func (t *Terminal) putchar(b byte) {
208
// CUF: Cursor Forward
209
case 'D':
210
// CUB: Cursor Back
211
+ t.cursorBack()
212
case 'E':
213
// CNL: Cursor Next Line
214
case 'F':
@@ -314,6 +315,12 @@ func (t *Terminal) drawchar(b byte) {
314
315
t.next += 1
316
}
317
318
+func (t *Terminal) cursorBack() {
319
+ if t.next > 0 {
320
+ t.next -= 1
321
+ }
322
+}
323
+
324
func (t *Terminal) cr() {
325
326
0 commit comments