This commit is contained in:
DarthMooMancer
2025-08-21 09:17:37 -04:00
parent a128048a8f
commit 5e887e3688
12 changed files with 134 additions and 133 deletions
+10 -9
View File
@@ -2,15 +2,16 @@
#include <ncurses.h>
void Input::get_input() {
while(true) {
initscr();
cbreak();
noecho();
while(true) {
initscr();
cbreak();
noecho();
m_current_key = getch();
endwin();
if(m_current_key == 'q') {
break;
m_old_key = m_current_key;
m_current_key = getch();
endwin();
if (m_current_key == 'q') {
break;
}
}
}
}