diff --git a/src/ui.go b/src/ui.go index 387df4f..940bd77 100644 --- a/src/ui.go +++ b/src/ui.go @@ -42,7 +42,7 @@ type UI struct { // InitTerminal initializes the terminal and sets the UI dimensions func InitTerminal(minY time.Duration, maxY time.Duration) *UI { - if !terminal.IsTerminal(int(os.Stdin.Fd())) { + if !terminal.IsTerminal(int(os.Stdout.Fd())) { panic("Not a terminal") } ui := UI{