Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (20 sloc) 459 Bytes
#include <ncurses.h>
int main(void){
int in;
initscr(); /* Start curses mode */
keypad(stdscr, TRUE);
nodelay(stdscr, TRUE);
cbreak();
noecho();
printw("Hello World !!!"); /* Print Hello World */
refresh(); /* Print it on to the real screen */
while(42){
in = getch();
if (in == KEY_LEFT){
printw("left!"); /* Wait for user input */
refresh();
}
}
endwin(); /* End curses mode */
return 0;
}
Something went wrong with that request. Please try again.