Mouse movement seems to clear timeout in ncurses