about summary refs log tree commit diff stats
path: root/src/config/color.h
diff options
context:
space:
mode:
authorAurelien Aptel <aaptel@suse.com>2019-08-23 12:32:55 +0200
committerAurelien Aptel <aaptel@suse.com>2019-08-23 13:25:45 +0200
commit269afa53b4167223e1b7ebd8b3b4e8ef8402d959 (patch)
tree5904549159874f7908c4af4cd028746fa654aa25 /src/config/color.h
parentab60a61fb985167e57850943b32cb2c2b41ce447 (diff)
downloadprofani-tty-269afa53b4167223e1b7ebd8b3b4e8ef8402d959.tar.gz
Add 256 colors support
Themes can now use color names from the xterm color name list [1].

1: https://jonasjacek.github.io/colors/
Diffstat (limited to 'src/config/color.h')
-rw-r--r--src/config/color.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/config/color.h b/src/config/color.h
new file mode 100644
index 00000000..4075313f
--- /dev/null
+++ b/src/config/color.h
@@ -0,0 +1,12 @@
+#ifndef _COLOR_H_
+#define _COLOR_H_
+
+/* to access color names */
+#define COLOR_NAME_SIZE 256
+extern const char *color_names[];
+
+/* to add or clear cache */
+int color_pair_cache_get(const char *pair_name);
+void color_pair_cache_reset(void);
+
+#endif