diff options
-rw-r--r-- | uxd.1 | 39 | ||||
-rw-r--r-- | uxd.rst | 35 |
2 files changed, 69 insertions, 5 deletions
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. -.TH "UXD" 1 "2024-12-22" "0.3.0" "Urchlay's Utilities" +.TH "UXD" 1 "2024-12-23" "0.3.0" "Urchlay's Utilities" .SH NAME uxd \- UTF-8 hex dumper .SH SYNOPSIS @@ -94,11 +94,44 @@ terminal and its color settings. Ignored if \fB\-m\fP given. .TP .BI \-c \ nnnnn Set the colors to use. Must be 2 to 5 digits, from 0 to 7. These are -standard ANSI colors. The first 2 are the alternating colors for -normal characters, the 3rd and 4th (optional) are the alternating color for non\-printable +standard ANSI colors: +.INDENT 7.0 +.TP +.B 0 +black +.TP +.B 1 +red +.TP +.B 2 +green +.TP +.B 3 +yellow +.TP +.B 4 +blue +.TP +.B 5 +purple +.TP +.B 6 +cyan +.TP +.B 7 +white +.UNINDENT +.sp +The first 2 digits are the alternating colors for +normal characters, the 3rd and 4th (optional) are the alternating colors for non\-printable and space characters, and the 5th (optional) is for invalid UTF\-8 sequences. Default: \fB23561\fP\&. This option also disables a prior \fB\-m\fP option. +.sp +Note that the default color set doesn\(aqt include white or black: +usually one of these is the terminal\(aqs background +color. Also, it avoids blue, because blue text is hard to read on +many terminals. .UNINDENT .\" colors (2 to 5 digits, 0 to 7). . @@ -77,12 +77,43 @@ as *K*, *M*, and *G* for power-of-10 based (e.g. *1K* is 1000 bytes). -c nnnnn Set the colors to use. Must be 2 to 5 digits, from 0 to 7. These are - standard ANSI colors. The first 2 are the alternating colors for - normal characters, the 3rd and 4th (optional) are the alternating color for non-printable + standard ANSI colors: + + 0 + black + + 1 + red + + 2 + green + + 3 + yellow + + 4 + blue + + 5 + purple + + 6 + cyan + + 7 + white + + The first 2 digits are the alternating colors for + normal characters, the 3rd and 4th (optional) are the alternating colors for non-printable and space characters, and the 5th (optional) is for invalid UTF-8 sequences. Default: **23561**. This option also disables a prior **-m** option. + Note that the default color set doesn't include white or black: + usually one of these is the terminal's background + color. Also, it avoids blue, because blue text is hard to read on + many terminals. + .. colors (2 to 5 digits, 0 to 7). -d data |