diff options
| author | uvok | 2026-01-11 11:46:43 +0100 |
|---|---|---|
| committer | uvok | 2026-01-11 11:46:43 +0100 |
| commit | 670bd3fe33248756789423c76b14b00c0a3287ad (patch) | |
| tree | 028ae7e3bba77bc5d0aec5ff3be0094be0370134 /nandgame | |
| parent | db6dbb0b71b0eeb299c105656b3e94952223b7f2 (diff) | |
Utilize cbreak mode
Diffstat (limited to 'nandgame')
| -rw-r--r-- | nandgame/cpp/simpc_ui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nandgame/cpp/simpc_ui.cpp b/nandgame/cpp/simpc_ui.cpp index e3435bc..35cbdcb 100644 --- a/nandgame/cpp/simpc_ui.cpp +++ b/nandgame/cpp/simpc_ui.cpp @@ -112,11 +112,14 @@ void simpc_ui_init(void) { curs_set(0); nodelay(stdscr, TRUE); noecho(); + cbreak(); #endif } void simpc_ui_cleanup(void) { #if NCUR + nocbreak(); + echo(); endwin(); #endif } |
