Next Previous Contents

114. SLang_getkey


Read a character from the keyboard


unsigned int SLang_getkey (void);


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