19 lines
261 B
C
19 lines
261 B
C
#include <ncurses.h>
|
|
int main() {
|
|
initscr();
|
|
cbreak();
|
|
noecho();
|
|
|
|
printw("press h to do something, and q to quit.\n");
|
|
|
|
int ch;
|
|
while ((ch = getch()) != 'q') {
|
|
if (ch == 'h') {
|
|
printw("yep thats h\n");
|
|
}
|
|
}
|
|
|
|
endwin();
|
|
return 0;
|
|
}
|