summaryrefslogtreecommitdiff
path: root/colors.h
diff options
context:
space:
mode:
Diffstat (limited to 'colors.h')
-rw-r--r--colors.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/colors.h b/colors.h
new file mode 100644
index 0000000..4c7c806
--- /dev/null
+++ b/colors.h
@@ -0,0 +1,39 @@
+/* Terminal colors (16 first used in escape sequence) */
+static const char *colorname[] = {
+ /* 8 normal colors */
+ "black",
+ "red3",
+ "green3",
+ "yellow3",
+ "blue2",
+ "magenta3",
+ "cyan3",
+ "gray90",
+
+ /* 8 bright colors */
+ "gray50",
+ "red",
+ "green",
+ "yellow",
+ "#5c5cff",
+ "magenta",
+ "cyan",
+ "white",
+
+ [255] = 0,
+
+ /* more colors can be added after 255 to use with DefaultXX */
+ "#cccccc",
+ "#555555",
+ "black",
+};
+
+
+/*
+ * Default colors (colorname index)
+ * foreground, background, cursor, reverse cursor
+ */
+unsigned int defaultfg = 7;
+unsigned int defaultbg = 0;
+static unsigned int defaultcs = 256;
+static unsigned int defaultrcs = 257;