Next Previous Contents

111. SLang_getkey

Synopsis

Read a character from the keyboard

Usage

unsigned int SLang_getkey (void);

Description

The SLang_getkey reads a single character from the terminal and returns it. The terminal must first be initialized via a call to SLang_init_tty before this function can be called. Upon success, SLang_getkey returns the character read from the terminal, otherwise it returns SLANG_GETKEY_ERROR.

See Also

SLang_init_tty, SLang_input_pending, SLang_ungetkey


Next Previous Contents