From: Karel Zak Date: Mon, 12 May 2014 08:03:41 +0000 (+0200) Subject: hexdump: add --color to the man page X-Git-Tag: v2.25-rc1~163 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=052e512a641f99ce86eba902627bed5b876a3850;p=thirdparty%2Futil-linux.git hexdump: add --color to the man page Signed-off-by: Karel Zak --- diff --git a/text-utils/hexdump.1 b/text-utils/hexdump.1 index 624b8d3dc5..f8ee8ef71e 100644 --- a/text-utils/hexdump.1 +++ b/text-utils/hexdump.1 @@ -67,6 +67,10 @@ by the same sixteen bytes in format enclosed in .RB ' | ' characters. +.IP "\fB\-L\fR, \fB\-\-color\fR[=\fIwhen\fR]" +Accept color units for the output (enabled by default). The optional argument \fIwhen\fP +can be \fBauto\fR, \fBnever\fR or \fBalways\fR. If the \fIwhen\fR argument is omitted, +then it defaults to \fBauto\fR. .TP \fB\-d\fR, \fB\-\-two\-bytes\-decimal\fR \fITwo-byte decimal display\fR. Display the input offset in hexadecimal, @@ -351,16 +355,11 @@ offsets 510 and 511 green if their value is 0xAA55, red otherwise. "%07.7_ax_L[cyan] " 8/2 " %04x_L[green:0xAA55@510-511,!red:0xAA55@510-511] " "\en" .nf .SH COLORS -Implicit coloring can be disabled as follows: -.RS +Implicit coloring can be disabled by an empty file \fI/etc/terminal-colors.d/hexdump.disable\fR. -.br -.BI "touch /etc/terminal-colors.d/hexdump.disable" -.br - -.RE -For more details see -.BR terminal-colors.d (5). +See +.BR terminal-colors.d (5) +for more details about colorization configuration. .SH STANDARDS The .B hexdump