mirror of
https://github.com/p-ranav/indicators.git
synced 2025-12-16 04:18:51 +08:00
Using \033 instead of \e for ISO-standards compliance #62
This commit is contained in:
@@ -28,7 +28,7 @@ static inline void show_console_cursor(bool const show) {
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
static inline void show_console_cursor(bool const show) {
|
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
|
#endif
|
||||||
|
|||||||
@@ -1570,7 +1570,7 @@ static inline void show_console_cursor(bool const show) {
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
static inline void show_console_cursor(bool const show) {
|
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
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user