diff --git a/src/tui/ncurses.go b/src/tui/ncurses.go index dd2bc90a..051a042c 100644 --- a/src/tui/ncurses.go +++ b/src/tui/ncurses.go @@ -130,6 +130,13 @@ func Init(theme *ColorTheme, black bool, mouse bool) { } else { _colorFn = attrMono } + + C.nodelay(C.stdscr, true) + ch := C.getch() + if ch != C.ERR { + C.ungetch(ch) + } + C.nodelay(C.stdscr, false) } func initPairs(theme *ColorTheme) {