Different Colors For Control Characters And Pattern Matches In less
This page answers questions like these:
- How to get less to show control characters in a different color from the search pattern matches?
- How to get less to show binary characters in a different color from the search pattern matches?
- How to get less to show control characters and pattern matches in different colors?
- How to get less to show binary characters and pattern matches in different colors?
- Get less to show control characters and pattern matches in a different color.
- Get less to show binary characters and pattern matches in a different color.
Related Links:
Show Colors in less
Make less Keep Reading a Growing File
Ungetcc Overflow Error Coming From less
Get less to Show Control and Binary Characters in Different Colors From Search Matches:
Try each of the following to see which one you like best:
LESSBINFMT="*k<%02X>" less FILE
LESSBINFMT="*d<%02X>" less FILE
LESSBINFMT="*u<%02X>" less FILE
Once you decide which one you like, put one of these in your .profile or .bashrc file.
export LESSBINFMT="*k<%02X>"
export LESSBINFMT="*d<%02X>"
export LESSBINFMT="*u<%02X>"
- The *k means put control and binary characters in blinking text, but on some systems the text doesn’t blink, instead it appears in a different color!
- The *d means put control and binary characters in bold text, but on some systems the text doesn’t appear in bold, instead it appears in a different color!
- The *u means put control and binary characters in underlined text, but on some systems the text doesn’t appear in underlined, instead it appears in a different color!
- The <%02X> means put binary characters as an uppercase 2 digit binary value within angled brackets.
Related Links:
Show Colors in less
Make less Keep Reading a Growing File
Ungetcc Overflow Error Coming From less
Home > Linux / Unix > Different Colors For Control Characters And Pattern Matches In less
Tags: less colors, less colours, control character, binary character, less, linux, unix, solaris, bsd, aix
Copyright © HelpDoco.com
less-control-character-colors.txt
Linux-Unix/change-control-character-colors-in-less.htm
1