Skip to content

Commit

Permalink
#306: clean up escape sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
nlslatt committed Apr 10, 2019
1 parent 72d5704 commit 0408a16
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/vt/configs/debug/debug_colorize.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,18 @@ inline auto ttyc() -> bool {
return tty;
}

inline auto green() -> std::string { return ttyc() ? "\33[32m" : ""; }
inline auto green() -> std::string { return ttyc() ? "\033[32m" : ""; }
inline auto bold() -> std::string { return ttyc() ? "\033[1m" : ""; }
inline auto magenta() -> std::string { return ttyc() ? "\33[95m" : ""; }
inline auto magenta() -> std::string { return ttyc() ? "\033[95m" : ""; }
inline auto red() -> std::string { return ttyc() ? "\033[31m" : ""; }
inline auto bred() -> std::string { return ttyc() ? "\33[31;1m" : ""; }
inline auto reset() -> std::string { return ttyc() ? "\33[00m" : ""; }
inline auto bd_green() -> std::string { return ttyc() ? "\33[32;1m" : ""; }
inline auto it_green() -> std::string { return ttyc() ? "\33[32;3m" : ""; }
inline auto un_green() -> std::string { return ttyc() ? "\33[32;4m" : ""; }
inline auto byellow() -> std::string { return ttyc() ? "\33[33;1m" : ""; }
inline auto yellow() -> std::string { return ttyc() ? "\33[33m" : ""; }
inline auto blue() -> std::string { return ttyc() ? "\33[34m" : ""; }
inline auto bred() -> std::string { return ttyc() ? "\033[31;1m" : ""; }
inline auto reset() -> std::string { return ttyc() ? "\033[00m" : ""; }
inline auto bd_green() -> std::string { return ttyc() ? "\033[32;1m" : ""; }
inline auto it_green() -> std::string { return ttyc() ? "\033[32;3m" : ""; }
inline auto un_green() -> std::string { return ttyc() ? "\033[32;4m" : ""; }
inline auto byellow() -> std::string { return ttyc() ? "\033[33;1m" : ""; }
inline auto yellow() -> std::string { return ttyc() ? "\033[33m" : ""; }
inline auto blue() -> std::string { return ttyc() ? "\033[34m" : ""; }

inline auto emph(std::string str) -> std::string {
return magenta() + str + reset();
Expand Down

0 comments on commit 0408a16

Please sign in to comment.