Color 16 and text style enums
This commit is contained in:
@@ -50,7 +50,7 @@ namespace Mutil::Console::Erase {
|
||||
}
|
||||
|
||||
namespace Mutil::Console::Graphics {
|
||||
class Format {
|
||||
/*class Format {
|
||||
void Reset() {};
|
||||
void Bold() {};
|
||||
void ResetBold() {};
|
||||
@@ -68,29 +68,50 @@ namespace Mutil::Console::Graphics {
|
||||
void ResetHidden() {};
|
||||
void Strikethrough() {};
|
||||
void ResetStrikethrough() {};
|
||||
};*/
|
||||
|
||||
// Text styling
|
||||
enum class TextStyle : uint8_t {
|
||||
Reset = 0,
|
||||
Bold,
|
||||
Dim,
|
||||
Italic,
|
||||
Underline,
|
||||
Blink,
|
||||
Inverse,
|
||||
Hidden,
|
||||
Strikethrough,
|
||||
ResetBold = 22,
|
||||
ResetDim = 22,
|
||||
ResetItalic,
|
||||
ResetUnderline,
|
||||
ResetBlink,
|
||||
ResetInverse = 27,
|
||||
ResetHidden,
|
||||
ResetStrikethrough,
|
||||
};
|
||||
|
||||
// Color 16
|
||||
/* const uint8_t Black = 30;
|
||||
const uint8_t Red = 31;
|
||||
const uint8_t Green = 32;
|
||||
const uint8_t Yellow = 33;
|
||||
const uint8_t Blue = 34;
|
||||
const uint8_t Magenta = 35;
|
||||
const uint8_t Cyan = 36;
|
||||
const uint8_t White = 37;
|
||||
const uint8_t Default = 39;
|
||||
const uint8_t BlackBG = 40;
|
||||
const uint8_t
|
||||
const uint8_t
|
||||
const uint8_t
|
||||
const uint8_t
|
||||
const uint8_t
|
||||
const uint8_t
|
||||
|
||||
class Color16 {
|
||||
|
||||
};*/
|
||||
enum class Color16 : uint8_t {
|
||||
Black = 30,
|
||||
Red,
|
||||
Green,
|
||||
Yellow,
|
||||
Blue,
|
||||
Magenta,
|
||||
Cyan,
|
||||
White,
|
||||
Default = 39,
|
||||
BlackBG,
|
||||
RedBG,
|
||||
GreenBG,
|
||||
YellowBG,
|
||||
BlueBG,
|
||||
MagentaBG,
|
||||
CyanBG,
|
||||
WhiteBG,
|
||||
DefaultBG = 49,
|
||||
};
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user