home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.muug.mb.ca
/
2014.06.ftp.muug.mb.ca.tar
/
ftp.muug.mb.ca
/
pub
/
src
/
linux
/
old-src
/
ncurses-1.8.5
/
getch.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-27
|
249b
|
25 lines
#include <ncurses.h>
main()
{
int c;
initscr();
cbreak();
noecho();
scrollok(stdscr, TRUE);
#if 0
keypad(stdscr, TRUE);
#endif
refresh();
while ((c = getch()) != 'q') {
printw("Key pressed: %03c\n", c);
refresh();
}
endwin();
}