introduce 1ms timeout to prevent busy wait
This commit is contained in:
parent
ca9454c2fb
commit
c4b803d344
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue