App-sdif
view release on metacpan or search on metacpan
script/sdif view on Meta::CPAN
OLD NEW MERGED UNCHANGED
--------- --------- --------- ---------
OCOMMAND NCOMMAND MCOMMAND : Command line
OFILE NFILE MFILE : File name
OMARK NMARK MMARK UMARK : Mark
OLINE NLINE MLINE ULINE : Line number
OTEXT NTEXT MTEXT UTEXT : Text
If UMARK and/or ULINE is empty, OMARK/NMARK and/or OLINE/NLINE are
used instead.
You can make multiple fields same color joining them by = :
FIELD1=FIELD2=...=COLOR
Also wildcard can be used for field name :
*CHANGE=BDw
Multiple fields can be specified by repeating options
--cm FIELD1=COLOR1 --cm FIELD2=COLOR2 ...
or combined with comma (,) :
--cm FIELD1=COLOR1,FIELD2=COLOR2, ...
Color specification is a combination of single uppercase character
representing 8 colors :
R Red
G Green
B Blue
C Cyan
M Magenta
Y Yellow
K Black
W White
and alternative (usually brighter) colors in lowercase :
r, g, b, c, m, y, k, w
or RGB values and 24 grey levels if using ANSI 256 or full color
terminal :
(255,255,255) : 24bit decimal RGB colors
#000000 .. #FFFFFF : 24bit hex RGB colors
#000 .. #FFF : 12bit hex RGB 4096 colors
000 .. 555 : 6x6x6 RGB 216 colors
L00 .. L25 : Black (L00), 24 grey levels, White (L25)
or color names enclosed by angle bracket :
<red> <blue> <green> <cyan> <magenta> <yellow>
<aliceblue> <honeydew> <hotpink> <moccasin>
<medium_aqua_marine>
with other special effects :
D Double-struck (boldface)
I Italic
U Underline
S Stand-out (reverse video)
Above color spec is simplified summary so if you want complete
information, read L<Getopt::EX::Colormap>.
Defaults are :
OCOMMAND => "555/010" or "GS"
NCOMMAND => "555/010" or "GS"
MCOMMAND => "555/010" or "GS"
OFILE => "551/010D" or "GDS"
NFILE => "551/010D" or "GDS"
MFILE => "551/010D" or "GDS"
OMARK => "010/444" or "G/W"
NMARK => "010/444" or "G/W"
MMARK => "010/444" or "G/W"
UMARK => ""
OLINE => "220" or "Y"
NLINE => "220" or "Y"
MLINE => "220" or "Y"
ULINE => ""
OTEXT => "K/454" or "G"
NTEXT => "K/454" or "G"
MTEXT => "K/454" or "G"
UTEXT => ""
This is equivalent to :
sdif --cm '?COMMAND=555/010,?FILE=555/010D' \
--cm '?MARK=010/444,UMARK=' \
--cm '?LINE=220,ULINE=' \
--cm '?TEXT=K/454,UTEXT='
=item B<--colormap>=C<&func>
=item B<--colormap>=C<sub{...}>
You can also set the name of perl subroutine name or definition to be
called handling matched words. Target word is passed as variable
C<$_>, and the return value of the subroutine will be displayed.
See L<Getopt::EX::Colormap/FUNCTION SPEC> for detail.
=item B<-->[B<no->]B<cc>, B<-->[B<no->]B<commandcolor>
=item B<-->[B<no->]B<fc>, B<-->[B<no->]B<filecolor>
=item B<-->[B<no->]B<lc>, B<-->[B<no->]B<linecolor>
=item B<-->[B<no->]B<mc>, B<-->[B<no->]B<markcolor>
=item B<-->[B<no->]B<tc>, B<-->[B<no->]B<textcolor>
=item B<-->[B<no->]B<uc>, B<-->[B<no->]B<unknowncolor>
Enable/Disable using color for the corresponding field.
=back
( run in 2.343 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )