#include <bios.h> int bioskey(int command)
7654 3210 Meaning ---- ---X Right shift key down ---- --X- Left shift key down ---- -X-- Ctrl key down ---- X--- Alt key down ---X ---- Scroll lock on --X- ---- Num lock on -X-- ---- Caps lock on X--- ---- Insert on
Depends on command.
not ANSI, not POSIX
while (!bioskey(1)) do_stuff();
Go to the first, previous, next, last section, table of contents.