Change AnsiEscapeCodes to static const, should compile on MSVC.
This commit is contained in:
@@ -73,11 +73,8 @@ namespace mcolor
|
||||
#pragma region Cursor Controls
|
||||
/// Moves cursor to home position {0, 0}.
|
||||
static const std::string CursorHome = AnsiEscapePrefix + "H";
|
||||
|
||||
|
||||
/// Moves cursor to line Y, column X.
|
||||
static std::string CursorTo(int line, int column);
|
||||
|
||||
/// Moves the cursor up # lines.
|
||||
static std::string CursorUp(int lines);
|
||||
|
||||
|
@@ -141,6 +141,9 @@ public:
|
||||
bool operator==(const Color4& rhs) const;
|
||||
|
||||
bool operator!=(const Color4& rhs) const;
|
||||
|
||||
|
||||
std::string ToEscapeCode(bool bg = false);
|
||||
};
|
||||
|
||||
inline std::ostream& operator << (std::ostream& os, const Color4& c) {
|
||||
|
Reference in New Issue
Block a user