aboutsummaryrefslogtreecommitdiff
path: root/uxd.c
diff options
context:
space:
mode:
Diffstat (limited to 'uxd.c')
-rw-r--r--uxd.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/uxd.c b/uxd.c
index 80bf910..a11347f 100644
--- a/uxd.c
+++ b/uxd.c
@@ -54,22 +54,22 @@ extern int my_optind;
/* maximum number of arguments, including environment and argv. */
#define MAX_ARGS 64
-/* ANSI colors */
-#define BLACK 0 /* don't use (could be the background color) */
+/* ANSI colors. */
+#define BLACK 0 /* don't use by default (could be the background color) */
#define RED 1
#define GREEN 2
#define YELLOW 3
-#define BLUE 4 /* don't use (hard to read on many terminals) */
+#define BLUE 4 /* don't use by default (hard to read on many terminals) */
#define PURPLE 5
#define CYAN 6
-#define WHITE 7 /* don't use (could be the background color) */
-
-/* highlight types. */
-#define HL_NORMAL 0
-#define HL_NORM_INV 1
-#define HL_SPECIAL 2
-#define HL_SPEC_INV 3
-#define HL_BAD 4
+#define WHITE 7 /* don't use by default (could be the background color) */
+
+/* highlight types. classify_char() "returns" one of these. */
+#define HL_NORMAL 0 /* printable ASCII (0x20-0x7e) */
+#define HL_NORM_INV 1 /* printable multibyte (unless -r) */
+#define HL_SPECIAL 2 /* unprintable ASCII (0x00-0x1f, 0x7f) */
+#define HL_SPEC_INV 3 /* BOM, surrogates if -p, etc */
+#define HL_BAD 4 /* invalid seqs, or bad Unicode */
/* terminal codes for mono highlighting. */
#define MONO_NORMAL 0