Change unbold ascii escape sequence from 21 to 22

21m as unbold is not well supported and sometimes causes
double-underline instead
This commit is contained in:
Derek Bankieris 2019-04-09 13:18:02 -05:00
parent be4372a831
commit f1ef983143

View File

@ -116,7 +116,7 @@ char * almostRealPath( const char * in_path ) {
static const std::string escapeSequence = "["; static const std::string escapeSequence = "[";
static const std::string defaultForegroundColorSequence = escapeSequence + "39m"; static const std::string defaultForegroundColorSequence = escapeSequence + "39m";
static const std::string boldSequence = escapeSequence + "1m"; static const std::string boldSequence = escapeSequence + "1m";
static const std::string noBoldSequence = escapeSequence + "21m"; static const std::string noBoldSequence = escapeSequence + "22m";
static const std::string underlineSequence = escapeSequence + "4m"; static const std::string underlineSequence = escapeSequence + "4m";
static const std::string noUnderlineSequence = escapeSequence + "24m"; static const std::string noUnderlineSequence = escapeSequence + "24m";