Skip to content

Commit

Permalink
Using \033 instead of \e for ISO-standards compliance #62
Browse files Browse the repository at this point in the history
  • Loading branch information
p-ranav committed May 25, 2020
1 parent 79dda6d commit a776a52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/indicators/cursor_control.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion single_include/indicators/indicators.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a776a52

Please sign in to comment.