<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE> {The S-lang C Library Reference}: SLang_getkey</TITLE>
<LINK HREF="cref-112.html" REL=next>
<LINK HREF="cref-110.html" REL=previous>
<LINK HREF="cref.html#toc111" REL=contents>
</HEAD>
<BODY>
<A HREF="cref-112.html">Next</A>
<A HREF="cref-110.html">Previous</A>
<A HREF="cref.html#toc111">Contents</A>
<HR>
<H2><A NAME="SLang_getkey"></A> <A NAME="s111">111. <B>SLang_getkey</B></A></H2>

<P>
<DL>
<DT><B> Synopsis </B><DD><P>Read a character from the keyboard
<DT><B> Usage </B><DD><P><CODE>unsigned int SLang_getkey (void);</CODE>
<DT><B> Description </B><DD><P>The <CODE>SLang_getkey</CODE> reads a single character from the terminal
and returns it.  The terminal must first be initialized via a call
to <CODE>SLang_init_tty</CODE> before this function can be called.  Upon
success, <CODE>SLang_getkey</CODE> returns the character read from the
terminal, otherwise it returns <CODE>SLANG_GETKEY_ERROR</CODE>.
<DT><B> See Also </B><DD><P><CODE>SLang_init_tty, SLang_input_pending, SLang_ungetkey</CODE>
</DL>
<P>
<P>
<HR>
<A HREF="cref-112.html">Next</A>
<A HREF="cref-110.html">Previous</A>
<A HREF="cref.html#toc111">Contents</A>
</BODY>
</HTML>
