summaryrefslogtreecommitdiff
path: root/nandgame/cpp/simpc_ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nandgame/cpp/simpc_ui.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
}