Using \033 instead of \e for ISO-standards compliance #62

This commit is contained in:
Pranav Srinivas Kumar
2020-05-25 13:06:08 -05:00
parent 79dda6dbae
commit a776a52c98
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ static inline void show_console_cursor(bool const show) {
#else
static inline void show_console_cursor(bool const show) {
std::fputs(show ? "\e[?25h" : "\e[?25l", stdout);
std::fputs(show ? "\033[?25h" : "\033[?25l", stdout);
}
#endif

View File

@@ -1570,7 +1570,7 @@ static inline void show_console_cursor(bool const show) {
#else
static inline void show_console_cursor(bool const show) {
std::fputs(show ? "\e[?25h" : "\e[?25l", stdout);
std::fputs(show ? "\033[?25h" : "\033[?25l", stdout);
}
#endif