From a776a52c983599f81dc79eaee670acd9757af730 Mon Sep 17 00:00:00 2001 From: Pranav Srinivas Kumar Date: Mon, 25 May 2020 13:06:08 -0500 Subject: [PATCH] Using \033 instead of \e for ISO-standards compliance #62 --- include/indicators/cursor_control.hpp | 2 +- single_include/indicators/indicators.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/indicators/cursor_control.hpp b/include/indicators/cursor_control.hpp index 6ddedee..2bfcb06 100755 --- a/include/indicators/cursor_control.hpp +++ b/include/indicators/cursor_control.hpp @@ -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 diff --git a/single_include/indicators/indicators.hpp b/single_include/indicators/indicators.hpp index 441e8b3..8d10892 100644 --- a/single_include/indicators/indicators.hpp +++ b/single_include/indicators/indicators.hpp @@ -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