aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEthan Coe-Renner <[email protected]>2022-12-12 15:30:51 -0800
committerTony Hutter <[email protected]>2022-12-15 10:14:32 -0800
commitfb11b1570a473dfe864fcac71b5220a28503fa5d (patch)
treef1ee407d46abc4c4e0173187b991d7bf94ba9cf0 /include
parent24502bd3a79d71b726f723ced55b0e7ccb5db840 (diff)
Add color output to zfs diff.
This adds support to color zfs diff (in the style of git diff) conditional on the ZFS_COLOR environment variable. Signed-off-by: Ethan Coe-Renner <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/libzutil.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libzutil.h b/include/libzutil.h
index 617dd0cd1..e285183e0 100644
--- a/include/libzutil.h
+++ b/include/libzutil.h
@@ -170,7 +170,9 @@ struct zfs_cmd;
* List of colors to use
*/
#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_RESET "\033[0m"
#define ANSI_BOLD "\033[1m"