diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2014-08-04 01:01:43 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2014-08-04 11:54:58 -0700 |
commit | 67b5092024aafb246517dd78101a4eee490b1a80 (patch) | |
tree | 8da386971b9b6299ce8a6977290b9d6ee53bb8c1 /tty.h | |
parent | bf2935d0787b11b81d847ae287eaf167d5e79744 (diff) |
Define ANSI color values
Diffstat (limited to 'tty.h')
-rw-r--r-- | tty.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -18,5 +18,14 @@ void tty_setfg(tty_t *tty, int fg); void tty_setinvert(tty_t *tty); void tty_setnormal(tty_t *tty); +#define TTY_COLOR_BLACK 0 +#define TTY_COLOR_RED 1 +#define TTY_COLOR_GREEN 2 +#define TTY_COLOR_YELLOW 3 +#define TTY_COLOR_BLUE 4 +#define TTY_COLOR_MAGENTA 5 +#define TTY_COLOR_CYAN 6 +#define TTY_COLOR_WHITE 7 +#define TTY_COLOR_NORMAL 9 #endif |