aboutsummaryrefslogtreecommitdiffstats
path: root/include/libzutil.h
diff options
context:
space:
mode:
authorTino Reichardt <[email protected]>2023-03-13 23:23:04 +0100
committerBrian Behlendorf <[email protected]>2023-03-24 10:21:19 -0700
commit80f2cdcd67ccae69d26426063e6689278c45d147 (patch)
treee3e17526bb0b44873f2fc87acbc197af45c2f367 /include/libzutil.h
parentd2d4f8554f62bd82fae873b68c2c122dfd959d3f (diff)
Add more ANSI colors to libzfs
Reviewed-by: WHR <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ethan Coe-Renner <[email protected]> Signed-off-by: Tino Reichardt <[email protected]> Closes #14621
Diffstat (limited to 'include/libzutil.h')
-rw-r--r--include/libzutil.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libzutil.h b/include/libzutil.h
index 948ac08cd..465e463f0 100644
--- a/include/libzutil.h
+++ b/include/libzutil.h
@@ -169,10 +169,16 @@ struct zfs_cmd;
/*
* List of colors to use
*/
+#define ANSI_BLACK "\033[0;30m"
#define ANSI_RED "\033[0;31m"
#define ANSI_GREEN "\033[0;32m"
#define ANSI_YELLOW "\033[0;33m"
#define ANSI_BLUE "\033[0;34m"
+#define ANSI_BOLD_BLUE "\033[1;34m" /* light blue */
+#define ANSI_MAGENTA "\033[0;35m"
+#define ANSI_CYAN "\033[0;36m"
+#define ANSI_GRAY "\033[0;37m"
+
#define ANSI_RESET "\033[0m"
#define ANSI_BOLD "\033[1m"