Skip to content

Commit 740a0e1

Browse files
fix: enable TestDECICInsertColumns and correct escape sequence
Remove erroneous t.Skip — DECIC (insertColumns) is implemented. Fix escape sequence from CSI ' { to CSI ' } to match the DECIC spec and the registered handler. Fixes #14 Co-authored-by: Ona <no-reply@ona.com>
1 parent 46436f1 commit 740a0e1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

inputhandler_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,13 @@ func TestSRScrollRight2(t *testing.T) {
143143
}
144144

145145
func TestDECICInsertColumns(t *testing.T) {
146-
t.Skip("DECIC not yet implemented in Go terminal")
147146
t.Parallel()
148147
term := newTestTerminal(5, 6)
149148
defer term.Dispose()
150149
for range 6 {
151150
term.WriteString("12345")
152151
}
153-
term.WriteString("\x1b[3;3H\x1b['{")
152+
term.WriteString("\x1b[3;3H\x1b['}")
154153
want := []string{"12 34", "12 34", "12 34", "12 34", "12 34", "12 34"}
155154
if diff := cmp.Diff(want, getAllViewportLines(term)); diff != "" {
156155
t.Errorf("DECIC 1 (-want +got):\n%s", diff)

0 commit comments

Comments
 (0)