Skip to content

Commit a776a52

Browse files
committed
Using \033 instead of \e for ISO-standards compliance #62
1 parent 79dda6d commit a776a52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/indicators/cursor_control.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static inline void show_console_cursor(bool const show) {
2828
#else
2929

3030
static inline void show_console_cursor(bool const show) {
31-
std::fputs(show ? "\e[?25h" : "\e[?25l", stdout);
31+
std::fputs(show ? "\033[?25h" : "\033[?25l", stdout);
3232
}
3333

3434
#endif

single_include/indicators/indicators.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ static inline void show_console_cursor(bool const show) {
15701570
#else
15711571

15721572
static inline void show_console_cursor(bool const show) {
1573-
std::fputs(show ? "\e[?25h" : "\e[?25l", stdout);
1573+
std::fputs(show ? "\033[?25h" : "\033[?25l", stdout);
15741574
}
15751575

15761576
#endif

0 commit comments

Comments
 (0)