How do I change the color of the "~" characters that go along the edge of a Less command output.
And how to change the color "(END)" at the bottom?
How do I change the color of the "~" characters that go along the edge of a Less command output. And how to change the color "(END)" at the bottom? |
|||
LESS uses several environment variables to control colors based on termcap library. The list of variable is the following:
If you want to set different foreground color just change 3x to something else To change background change or add 4x, eg. to change color of "~" (tilde character) from your question to red foreground and green background set
With those variables you will colorize search patterns, prompt, and even manuals will be colorful (if you use less as PAGER). You can also change other less behavior like prompt, try this one:
Play with it, have fun. Note 1 Due to some bug in new groff version you may need to set
as well to change colors. Note 2 (List of basic color codes)
|
||||
|
less
adds a~
tilde? I only thoughtvi
did. – Alaa Ali Aug 11 '14 at 11:20