From 052e512a641f99ce86eba902627bed5b876a3850 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 12 May 2014 10:03:41 +0200 Subject: hexdump: add --color to the man page Signed-off-by: Karel Zak --- text-utils/hexdump.1 | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'text-utils/hexdump.1') diff --git a/text-utils/hexdump.1 b/text-utils/hexdump.1 index 624b8d3dc..f8ee8ef71 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 -- cgit v1.2.3-55-g7522