Adding more attributes to the my_ncurses

This commit is contained in:
Anonymus Raccoon
2020-05-24 18:14:03 +02:00
parent 4828965281
commit 75663b3530
+9
View File
@@ -63,7 +63,16 @@ my_addstr(window, str))
#define CYAN 36
#define WHITE 37
#define BOLD 1
#define FAINT 2
#define ITALIC 3
#define UNDERLINE 4
#define SLOW_BLINK 5
#define FAST_BLINK 6
#define REVERSE 6
#define my_attron(attr, value) (printf("\x1B[%dm", attr + value))
#define my_attroff(attr, value) (printf("\x1B[%dm", attr + 20))
#define my_attrreset() (printf("\x1B[0m"))