mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-28 20:11:00 +01:00
30 lines
432 B
C
30 lines
432 B
C
#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();
|
|
}
|
|
|