| cvs.gedasymbols.org/djgpp/doc/libc/libc_402.html | search | 
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
#include <pc.h> #include <keys.h> int getkey(void);  | 
Waits for the user to press one key, then returns that key. Alt-key combinations have 0x100 added to them. Extended keys return their non-extended codes.
The file `keys.h' has symbolic names for many of the keys.
See section getxkey.
The key pressed.
| ANSI/ISO C | No | 
| POSIX | No | 
while (getkey() != K_Alt_3) do_something();  | 
| webmaster | delorie software privacy | 
| Copyright © 2004 | Updated Apr 2004 |