23 #ifndef __ccxx_Console_hxx 24 #define __ccxx_Console_hxx 44 enum TextColor { ColorBlack, ColorRed, ColorGreen, ColorYellow, ColorBlue,
45 ColorMagenta, ColorCyan, ColorWhite };
48 enum TextStyle { StyleBold, StyleUnderline, StyleInverse };
64 size_t read(
char* text,
size_t maxlen);
73 void write(
const char* text,
size_t len = 0);
80 bool setEcho(
bool on);
123 void resetTextStyle();
130 void setTitle(
const String& title);
146 #ifdef CCXX_OS_WINDOWS 160 #endif // __ccxx_Console_hxx
A class that provides basic control of the console, such as changing text attributes, clearing the screen, and moving the cursor.
Definition: Console.h++:39
unsigned int uint_t
An alias for unsigned int.
Definition: Integers.h++:74
TextStyle
Text styles.
Definition: Console.h++:48
TextColor
Text colors.
Definition: Console.h++:44
#define COMMONCPP_API
Definition: Common.h++:126
A flexible, reference counted, copy-on-write, thread-safe, nullable string.
Definition: String.h++:50
Definition: AllocationMap.c++:25