summaryrefslogtreecommitdiff
path: root/tty.h
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2014-08-04 01:01:43 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2014-08-04 11:54:58 -0700
commit67b5092024aafb246517dd78101a4eee490b1a80 (patch)
tree8da386971b9b6299ce8a6977290b9d6ee53bb8c1 /tty.h
parentbf2935d0787b11b81d847ae287eaf167d5e79744 (diff)
Define ANSI color values
Diffstat (limited to 'tty.h')
-rw-r--r--tty.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tty.h b/tty.h
index aa59d2e..11e3590 100644
--- a/tty.h
+++ b/tty.h
@@ -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