Go to the first, previous, next, last section, table of contents.


bioskey

Syntax

#include <bios.h>

int bioskey(int command)

Description

command = 0
Returns the next key pressed
command = 1
Checks the keyboard, returns zero if no key pressed, else the key. Does not dequeue the key.
command = 2
Returns the shift state:
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

Return Value

Depends on command.

Portability

not ANSI, not POSIX

Example

while (!bioskey(1))
  do_stuff();


Go to the first, previous, next, last section, table of contents.