A | |
anykey, rlutil | |
C | |
cls, rlutil | |
G | |
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 | |
S | |
setColor, rlutil | |
showcursor, rlutil | |
T | |
tcols, rlutil | |
trows, rlutil |
Waits until a key is pressed.
inline void anykey( void )
Clears screen and moves cursor home.
inline void cls( void )
Return ANSI color escape sequence for specified number 0-15.
RLUTIL_STRING_T getANSIColor( const int c )
Get character without waiting for Return to be pressed.
int getch( void )
Reads a key press (blocking) and returns a key code.
int getkey( void )
Same as rlutil.locate.
inline void gotoxy( int x, int y )
Hides the cursor.
inline void hidecursor( void )
Determines if keyboard has been hit.
int kbhit( void )
Sets the cursor position to 1-based x,y.
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.
inline void msleep( unsigned int ms )
Non-blocking getch().
inline int nb_getch( void )
Change color specified by number (Windows / QBasic colors).
inline void setColor( int c )
Shows the cursor.
inline void showcursor( void )
Get the number of columns in the terminal window or -1 on error.
int tcols( void )
Get the number of rows in the terminal window or -1 on error.
int trows( void )