mirror of
https://github.com/thiagoauler/apple1.git
synced 2024-11-15 16:07:14 +00:00
24 lines
304 B
C
24 lines
304 B
C
|
#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();
|
||
|
}
|