feat: added window, input and elements
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#include "input.hpp"
|
||||
#include <ncurses.h>
|
||||
|
||||
void Input::get_input(bool &running) {
|
||||
while(running) {
|
||||
initscr();
|
||||
cbreak();
|
||||
noecho();
|
||||
|
||||
m_getch = getch();
|
||||
|
||||
endwin();
|
||||
if(m_getch == 'q') {
|
||||
running = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user