aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-12-23 16:25:39 -0500
committerB. Watson <urchlay@slackware.uk>2024-12-23 16:25:39 -0500
commitc8ac2bf316f63e9f18581bae8003b50e48ddfe23 (patch)
treec14d010227a6e8b227c1b877f16ee5e9e61c779e
parent6b4b1907c96b9070fd81c29c771f3da0510ff22c (diff)
downloaduxd-c8ac2bf316f63e9f18581bae8003b50e48ddfe23.tar.gz
commentary
-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