Even better code than yesterday! 2
This commit is contained in:
@@ -24,56 +24,7 @@ namespace Mutil::Console::General {
|
||||
}
|
||||
|
||||
namespace Mutil::Console::Graphics {
|
||||
// Text styling
|
||||
enum TextStyle : uint8_t {
|
||||
Normal = 0,
|
||||
Bold,
|
||||
Dim,
|
||||
Italic,
|
||||
Underline,
|
||||
Blink,
|
||||
Inverse,
|
||||
Hidden,
|
||||
Strikethrough,
|
||||
ResetBold = 22,
|
||||
ResetDim = 22,
|
||||
ResetItalic,
|
||||
ResetUnderline,
|
||||
ResetBlink,
|
||||
ResetInverse = 27,
|
||||
ResetHidden,
|
||||
ResetStrikethrough,
|
||||
DefaultForegroundColor = 39,
|
||||
DefaultBackgroundColor = 49,
|
||||
};
|
||||
|
||||
// Color 16
|
||||
enum Color16 : uint8_t {
|
||||
Black = 30,
|
||||
Red,
|
||||
Green,
|
||||
Yellow,
|
||||
Blue,
|
||||
Magenta,
|
||||
Cyan,
|
||||
White,
|
||||
BlackBG = 40,
|
||||
RedBG,
|
||||
GreenBG,
|
||||
YellowBG,
|
||||
BlueBG,
|
||||
MagentaBG,
|
||||
CyanBG,
|
||||
WhiteBG,
|
||||
};
|
||||
|
||||
enum ColorFormat : uint8_t {
|
||||
ColorRGB = 2,
|
||||
Color256 = 5,
|
||||
SetForegroundColor = 38,
|
||||
SetBackgroundColor = 48,
|
||||
};
|
||||
|
||||
// Rendition flags
|
||||
const uint64_t RNormal = 0;
|
||||
const uint64_t RBold = 1<<0;
|
||||
const uint64_t RDim = 1<<1;
|
||||
@@ -215,6 +166,7 @@ namespace Mutil::Console::Functions {
|
||||
void SaveCursorPosition() {};
|
||||
void RestoreCursorPosition() {};
|
||||
|
||||
/* Yucky
|
||||
void SelectGraphicsRendition(std::initializer_list<uint8_t> args) {
|
||||
if (empty(args)) { return; };
|
||||
|
||||
@@ -233,4 +185,5 @@ namespace Mutil::Console::Functions {
|
||||
|
||||
std::cout << s.str();
|
||||
};
|
||||
*/
|
||||
}
|
Reference in New Issue
Block a user