diff options
Diffstat (limited to 'src/core/frontend/Terminal.cpp')
-rw-r--r-- | src/core/frontend/Terminal.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/core/frontend/Terminal.cpp b/src/core/frontend/Terminal.cpp index 447e595..5664564 100644 --- a/src/core/frontend/Terminal.cpp +++ b/src/core/frontend/Terminal.cpp @@ -41,9 +41,23 @@ std::string Terminal::bright() const if (!useColor) { return std::string{}; } - std::stringstream ss; - ss << "\x1b[1m"; - return ss.str(); + return "\x1b[1m"; +} + +std::string Terminal::italic() const +{ + if (!useColor) { + return std::string{}; + } + return "\x1b[3m"; +} + +std::string Terminal::underline() const +{ + if (!useColor) { + return std::string{}; + } + return "\x1b[4m"; } std::string Terminal::reset() const |