mirror of
https://github.com/zoriya/ash.git
synced 2026-06-06 20:03:31 +00:00
Adding more attributes to the my_ncurses
This commit is contained in:
@@ -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"))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user