adding some curses example for further coding in apple 1 emulator

This commit is contained in:
Thiago Auler dos Santos 2017-11-20 00:35:29 -02:00
parent 152c6e15fa
commit 723bf8ade8

23
curses.c Normal file
View File

@ -0,0 +1,23 @@
#include <curses.h>
int main()
{
initscr();
noecho();
cbreak();
nodelay(stdscr, TRUE);
int ch = ERR;
while (ch == ERR)
{
ch = getch();
//addch('.');
}
addch(ch);
//refresh();
nodelay(stdscr, FALSE);
getch();
endwin();
}