1
0
mirror of https://github.com/CPunch/Laika.git synced 2025-10-01 22:10:05 +00:00

Sanity check to shellS_getPeer, visual improvements

This commit is contained in:
2022-03-21 19:47:18 -05:00
parent 192bf22225
commit e3b1cf586b
4 changed files with 30 additions and 25 deletions

View File

@@ -31,11 +31,15 @@ typedef enum {
TERM_BRIGHT_WHITE
} TERM_COLOR;
#define PRINTINFO(...) shellT_printf("\r%s[~]%s ", shellT_getForeColor(TERM_BRIGHT_YELLOW), shellT_getForeColor(TERM_BRIGHT_WHITE)); \
shellT_printf(__VA_ARGS__);
#define PRINTINFO(...) do { \
shellT_printf("\r%s[~]%s ", shellT_getForeColor(TERM_BRIGHT_YELLOW), shellT_getForeColor(TERM_BRIGHT_WHITE)); \
shellT_printf(__VA_ARGS__); \
} while(0);
#define PRINTSUCC(...) shellT_printf("\r%s[~]%s ", shellT_getForeColor(TERM_BRIGHT_GREEN), shellT_getForeColor(TERM_BRIGHT_WHITE)); \
shellT_printf(__VA_ARGS__);
#define PRINTSUCC(...) do { \
shellT_printf("\r%s[~]%s ", shellT_getForeColor(TERM_BRIGHT_GREEN), shellT_getForeColor(TERM_BRIGHT_WHITE)); \
shellT_printf(__VA_ARGS__); \
} while(0);
void shellT_conioTerm(void);
void shellT_resetTerm(void);