diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-05-12 12:38:00 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-05-12 12:38:00 -0400 |
| commit | 9e4a3f4471cfc50d778b50d6999cd957bff62ec0 (patch) | |
| tree | 61537ee68552158d3f2d3a56652ddc51c5ea2bff | |
| parent | 96bc699d269ff79bf31dad182f1a2b96226e8ce5 (diff) | |
| download | stasis-9e4a3f4471cfc50d778b50d6999cd957bff62ec0.tar.gz | |
Replace escape sequence '\e' with '\x1b' (portable)
| -rw-r--r-- | src/lib/core/include/utils.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/core/include/utils.h b/src/lib/core/include/utils.h index 194f8e7..98b8ae8 100644 --- a/src/lib/core/include/utils.h +++ b/src/lib/core/include/utils.h @@ -210,17 +210,17 @@ int path_store(char **destptr, size_t maxlen, const char *base, const char *path #define STASIS_COLOR_RESET "" #else //! Set output color to red -#define STASIS_COLOR_RED "\e[1;91m" +#define STASIS_COLOR_RED "\x1b[1;91m" //! Set output color to green -#define STASIS_COLOR_GREEN "\e[1;92m" +#define STASIS_COLOR_GREEN "\x1b[1;92m" //! Set output color to yellow -#define STASIS_COLOR_YELLOW "\e[1;93m" +#define STASIS_COLOR_YELLOW "\x1b[1;93m" //! Set output color to blue -#define STASIS_COLOR_BLUE "\e[1;94m" +#define STASIS_COLOR_BLUE "\x1b[1;94m" //! Set output color to white -#define STASIS_COLOR_WHITE "\e[1;97m" +#define STASIS_COLOR_WHITE "\x1b[1;97m" //! Reset output color to terminal default -#define STASIS_COLOR_RESET "\e[0;37m\e[0m" +#define STASIS_COLOR_RESET "\x1b[0;37m\x1b[0m" #endif #define STASIS_MSG_SUCCESS 0 |
