introduce 1ms timeout to prevent busy wait

This commit is contained in:
jjanzen 2025-01-20 23:04:21 -06:00
parent ca9454c2fb
commit c4b803d344

View file

@ -204,7 +204,7 @@ pub const Display = struct {
_ = ncurses.noecho();
_ = ncurses.curs_set(0);
_ = ncurses.start_color();
_ = ncurses.timeout(0);
_ = ncurses.timeout(1);
_ = ncurses.init_pair(1, ncurses.COLOR_WHITE, ncurses.COLOR_BLACK);
_ = ncurses.init_pair(2, ncurses.COLOR_BLACK, ncurses.COLOR_RED);