diff --git a/src/cli.c b/src/cli.c index 6fe9211..cf9d149 100644 --- a/src/cli.c +++ b/src/cli.c @@ -58,6 +58,7 @@ #define C_COLOR_YELLOW "\e[00;33m" #define C_COLOR_GREEN "\e[00;32m" #define C_COLOR_BLUE "\e[01;34m" +#define C_COLOR_REVERSE "\e[7m" #define C_COLOR_NORMAL "\e[0m" #define NON_BLOCKING 1 @@ -126,7 +127,7 @@ static inline int getch(bool nonBlocking) } // - // Decorations + // Print monitor screen // void decorateMonitor(struct winsize *terminalSize) { @@ -134,7 +135,7 @@ static inline int getch(bool nonBlocking) // print decorations for (int i = 0; i < terminalSize->ws_col; i++) { - printf("*"); + printf(C_COLOR_REVERSE " " C_COLOR_NORMAL); } for (int i = 0; @@ -142,13 +143,13 @@ static inline int getch(bool nonBlocking) i++) { if ((i % terminalSize->ws_col == 0) || (i % terminalSize->ws_col == terminalSize->ws_col - 1)) - printf("|"); + printf(C_COLOR_REVERSE " " C_COLOR_NORMAL); else - printf(" "); + printf(C_COLOR_NORMAL " " C_COLOR_NORMAL); } for (int i = 0; i < terminalSize->ws_col; i++) { - printf("*"); + printf(C_COLOR_REVERSE " " C_COLOR_NORMAL); } fflush(stdout);