X-Git-Url: http://git.refcnt.org/?a=blobdiff_plain;f=colorize.1;h=f3341ede179fb311ec0bbbe7dcae313d38a69ff7;hb=c8d98f146989adf92c440e78b47b554b427ddf79;hp=20e968b47056571c5620ee0128fef0aa396d488f;hpb=add8a17f880fc4f00aa204fd3ee1f7a47f61a15a;p=colorize.git diff --git a/colorize.1 b/colorize.1 index 20e968b..f3341ed 100644 --- a/colorize.1 +++ b/colorize.1 @@ -1,12 +1,12 @@ -.TH COLORIZE 1 "2018-01-31" "colorize v0.63" "User Commands" +.TH COLORIZE 1 "2019-02-23" "colorize v0.64" "User Commands" .SH NAME colorize \- colorize text on terminal with ANSI escape sequences .SH SYNOPSIS -\fBcolorize\fR [\fIoption\fR]... (\fIforeground\fR) [\fIfile\fR] +\fBcolorize\fR [\fIoption\fR]... (\fIforeground\fR) [\fI-|file\fR] .PP -\fBcolorize\fR [\fIoption\fR]... (\fIforeground\fR)/(\fIbackground\fR) [\fIfile\fR] +\fBcolorize\fR [\fIoption\fR]... (\fIforeground\fR)/(\fIbackground\fR) [\fI-|file\fR] .PP -\fBcolorize\fR \-\-clean[\-all] [\fIfile\fR] +\fBcolorize\fR \-\-clean[\-all] [\fI-|file\fR] .PP \fBcolorize\fR \-hV .SH DESCRIPTION @@ -62,5 +62,21 @@ as follows: 40-47,49 (background colors) .IP * 4 0 (reset) +.SH EXAMPLES +.TP +$ \fBcolorize green /etc/motd\fR +Print file /etc/motd with green as foreground color +.TP +$ \fBcolorize green/black /etc/motd\fR +Print file /etc/motd with green as foreground and black as background color +.TP +$ \fBcolorize green /etc/motd | colorize --clean\fR +Print input from stdin with color escape sequences omitted +.TP +$ \fBgit log -1 -p --color | colorize --clean-all\fR +Print input from stdin with all color escape sequences omitted +.TP +$ \fBcolorize --attr=bold green /etc/motd\fR +Print file /etc/motd with bold green as foreground color .SH AUTHOR Steven Schubiger