summaryrefslogtreecommitdiff
path: root/nandgame/cpp
diff options
context:
space:
mode:
authoruvok2026-01-11 11:46:43 +0100
committeruvok2026-01-11 11:46:43 +0100
commit670bd3fe33248756789423c76b14b00c0a3287ad (patch)
tree028ae7e3bba77bc5d0aec5ff3be0094be0370134 /nandgame/cpp
parentdb6dbb0b71b0eeb299c105656b3e94952223b7f2 (diff)
Utilize cbreak mode
Diffstat (limited to 'nandgame/cpp')
-rw-r--r--nandgame/cpp/simpc_ui.cpp3
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
}