Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
A
 anykey, rlutil
C
 cls, rlutil
G
 getANSIBackgroundColor, rlutil
 getANSIColor, rlutil
 getch
 getkey, rlutil
 gotoxy
H
 hidecursor, rlutil
K
 kbhit
L
 locate, rlutil
M
 max, rlutil
 min, rlutil
 msleep, rlutil
N
 nb_getch, rlutil
R
 resetColor, rlutil
S
 saveDefaultColor, rlutil
 setBackgroundColor, rlutil
 setColor, rlutil
 showcursor, rlutil
T
 tcols, rlutil
 trows, rlutil
#ifdef __cplusplus RLUTIL_INLINE void anykey()
Waits until a key is pressed.
RLUTIL_INLINE void cls(void)
Clears screen, resets all attributes and moves cursor home.
RLUTIL_INLINE RLUTIL_STRING_T getANSIBackgroundColor(const int c)
Return ANSI background color escape sequence for specified number 0-15.
RLUTIL_INLINE RLUTIL_STRING_T getANSIColor(const int c)
Return ANSI color escape sequence for specified number 0-15.
RLUTIL_INLINE int getch(void)
Get character without waiting for Return to be pressed.
RLUTIL_INLINE int getkey(void)
Reads a key press (blocking) and returns a key code.
RLUTIL_INLINE void gotoxy(int x,
int y)
Same as rlutil.locate.
RLUTIL_INLINE void hidecursor(void)
Hides the cursor.
RLUTIL_INLINE int kbhit(void)
Determines if keyboard has been hit.
RLUTIL_INLINE void locate(int x,
int y)
Sets the cursor position to 1-based x,y.
#ifdef __cplusplus template <class T> const T& max (const &a,
const &b)
Returns the greater of the two arguments.
#ifdef __cplusplus template <class T> const T& min (const &a,
const &b)
Returns the lesser of the two arguments.
RLUTIL_INLINE void msleep(unsigned int ms)
Waits given number of milliseconds before continuing.
RLUTIL_INLINE int nb_getch(void)
Non-blocking getch().
RLUTIL_INLINE void resetColor()
Reset color to default Requires a call to saveDefaultColor() to set the defaults
RLUTIL_INLINE int saveDefaultColor()
Call once to preserve colors for use in resetColor() on Windows without ANSI, no-op otherwise
RLUTIL_INLINE void setBackgroundColor(int c)
Change background color specified by number (Windows / QBasic colors).
RLUTIL_INLINE void setColor(int c)
Change color specified by number (Windows / QBasic colors).
RLUTIL_INLINE void showcursor(void)
Shows the cursor.
RLUTIL_INLINE int tcols(void)
Get the number of columns in the terminal window or -1 on error.
RLUTIL_INLINE int trows(void)
Get the number of rows in the terminal window or -1 on error.
Close