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


getxkey

Syntax

#include <pc.h>
#include <keys.h>

int getxkey(void);

Description

Waits for the user to press one key, then returns that key. Alt-key combinations have 0x100 added to them, and extended keys have 0x200 added to them.

The file `keys.h' has symbolic names for many of the keys.

See section getkey.

Return Value

The key pressed.

Portability

not ANSI, not POSIX

Example

while (getxkey() != K_EEnd)
  do_something();


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