blob: 90a0ee42178cc8db40078ec8e719763afaa44552 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include <ncurses.h>
main()
{
int c,i;
initscr();
cbreak();
noecho();
#if 1
wtimeout(stdscr,1000);
#endif
scrollok(stdscr,TRUE);
for (c='A';c<='Z';c++)
for (i=0;i<25;i++)
{
move(i,i);
addch(c);
refresh();
}
move (0,0);
while ((c=wgetch(stdscr))!='A')
{
if (c == EOF) printw(">>wait for keypress<<");
else printw(">>%c<<\n",c);
refresh();
}
endwin();
}
|