| 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 | 
Waits until a key is pressed.
#ifdef __cplusplus RLUTIL_INLINE void anykey() 
Clears screen, resets all attributes and moves cursor home.
RLUTIL_INLINE void cls( void ) 
Return ANSI background color escape sequence for specified number 0-15.
RLUTIL_INLINE RLUTIL_STRING_T getANSIBackgroundColor( const int c ) 
Return ANSI color escape sequence for specified number 0-15.
RLUTIL_INLINE RLUTIL_STRING_T getANSIColor( const int c ) 
Get character without waiting for Return to be pressed.
RLUTIL_INLINE int getch( void ) 
Reads a key press (blocking) and returns a key code.
RLUTIL_INLINE int getkey( void ) 
Same as rlutil.locate.
RLUTIL_INLINE void gotoxy( int x, int y ) 
Hides the cursor.
RLUTIL_INLINE void hidecursor( void ) 
Determines if keyboard has been hit.
RLUTIL_INLINE int kbhit( void ) 
Sets the cursor position to 1-based x,y.
RLUTIL_INLINE void locate( int x, int y ) 
Returns the greater of the two arguments.
#ifdef __cplusplus template <class T> const T& max ( const T & a, const T & b ) 
Returns the lesser of the two arguments.
#ifdef __cplusplus template <class T> const T& min ( const T & a, const T & b ) 
Waits given number of milliseconds before continuing.
RLUTIL_INLINE void msleep( unsigned int ms ) 
Non-blocking getch().
RLUTIL_INLINE int nb_getch( void ) 
Reset color to default Requires a call to saveDefaultColor() to set the defaults
RLUTIL_INLINE void resetColor() 
Call once to preserve colors for use in resetColor() on Windows without ANSI, no-op otherwise
RLUTIL_INLINE int saveDefaultColor() 
Change background color specified by number (Windows / QBasic colors).
RLUTIL_INLINE void setBackgroundColor( int c ) 
Change color specified by number (Windows / QBasic colors).
RLUTIL_INLINE void setColor( int c ) 
Shows the cursor.
RLUTIL_INLINE void showcursor( void ) 
Get the number of columns in the terminal window or -1 on error.
RLUTIL_INLINE int tcols( void ) 
Get the number of rows in the terminal window or -1 on error.
RLUTIL_INLINE int trows( void )