Supporting ncurses style

This commit is contained in:
Melefo
2020-05-24 19:24:40 +02:00
parent 9138ebd725
commit eb6a6d186e
6 changed files with 109 additions and 44 deletions
+3 -1
View File
@@ -72,8 +72,10 @@ my_addstr(window, str))
#define FAST_BLINK 6
#define REVERSE 6
#define DISABLE_ATTR 20
#define my_attron(attr, value) (printf("\x1B[%dm", attr + value))
#define my_attroff(attr, value) (printf("\x1B[%dm", attr + 20))
#define my_attroff(attr, value) (printf("\x1B[%dm", attr + DISABLE_ATTR))
#define my_attrreset() (printf("\x1B[0m"))