From c8ac2bf316f63e9f18581bae8003b50e48ddfe23 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 23 Dec 2024 16:25:39 -0500 Subject: commentary --- uxd.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'uxd.c') 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 -- cgit v1.2.3