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 3a445da commit e18d143Copy full SHA for e18d143
output_test.go
@@ -19,3 +19,13 @@ func TestTerminal_Backspace(t *testing.T) {
19
20
assert.Equal(t, "Hello", term.content.Text())
21
}
22
+
23
+func TestTerminal_Backspace_Foreign_Characters(t *testing.T) {
24
+ term := New()
25
+ term.Resize(fyne.NewSize(50, 50))
26
+ term.handleOutput([]byte("çîß"))
27
+ assert.Equal(t, "çîß", term.content.Text())
28
29
+ term.handleOutput([]byte{asciiBackspace})
30
+ assert.Equal(t, "çî", term.content.Text())
31
+}
0 commit comments