diff options
Diffstat (limited to 'src/tui/tcell_test.go')
-rw-r--r-- | src/tui/tcell_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tui/tcell_test.go b/src/tui/tcell_test.go index 54b9c9b3..217ad048 100644 --- a/src/tui/tcell_test.go +++ b/src/tui/tcell_test.go @@ -3,6 +3,7 @@ package tui import ( + "os" "testing" "github.com/gdamore/tcell/v2" @@ -20,7 +21,7 @@ func assert(t *testing.T, context string, got interface{}, want interface{}) boo // Test the handling of the tcell keyboard events. func TestGetCharEventKey(t *testing.T) { - if util.ToTty() { + if util.IsTty(os.Stdout) { // This test is skipped when output goes to terminal, because it causes // some glitches: // - output lines may not start at the beginning of a row which makes |