* Customize `less' colors to look like `most'
@ 2015-05-05 14:55 Sebastien Vauban
2015-05-05 19:06 ` Sebastien Vauban
0 siblings, 1 reply; 4+ messages in thread
From: Sebastien Vauban @ 2015-05-05 14:55 UTC (permalink / raw)
To: cygwin
Hello,
I've tried to copy all sort of color schemes to try and get colors in
the man pages -- for example, like what `most' does by default.
I've never been successful to get something like
http://stackoverflow.com/questions/10535432/tmux-man-page-search-highlighting
to highlight man pages, even with the given LESS_TERMCAP_* given in
example.
What am I missing?
Here is the relevant part of my .zshrc:
--8<---------------cut here---------------start------------->8---
PAGER="less"
# Colored man pages:
# http://linuxtidbits.wordpress.com/2009/03/23/less-colors-for-man-pages/
export LESS_TERMCAP_mb=$'\E[01;31m' # enter_blink_mode
export LESS_TERMCAP_md=$'\E[01;38;5;74m' # enter_bold_mode
export LESS_TERMCAP_so=$'\E[38;5;016m\E[48;5;220m' # enter_standout_mode
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # enter_underline_mode
export LESS_TERMCAP_me=$'\E[0m' # exit_attribute_mode
export LESS_TERMCAP_se=$'\E[0m' # exit_standout_mode
export LESS_TERMCAP_ue=$'\E[0m' # exit_underline_mode
# tailoring `less'
LESS="--quit-at-eof --ignore-case --long-prompt --raw-control-chars"
--8<---------------cut here---------------end--------------->8---
And here is my .minttyrc:
--8<---------------cut here---------------start------------->8---
BoldAsColour=yes
BoldAsFont=no
Font=Consolas
FontHeight=10
RightClickAction=paste
Rows=43
ScrollbackLines=100000
Term=xterm-256color
--8<---------------cut here---------------end--------------->8---
Best regards,
Seb
--
Sebastien Vauban
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Customize `less' colors to look like `most'
2015-05-05 14:55 Customize `less' colors to look like `most' Sebastien Vauban
@ 2015-05-05 19:06 ` Sebastien Vauban
2015-05-06 22:29 ` Jim Reisert AD1C
0 siblings, 1 reply; 4+ messages in thread
From: Sebastien Vauban @ 2015-05-05 19:06 UTC (permalink / raw)
To: cygwin
Sebastien Vauban wrote:
> I've tried to copy all sort of color schemes to try and get colors in
> the man pages -- for example, like what `most' does by default.
>
> I've never been successful to get something like
> http://stackoverflow.com/questions/10535432/tmux-man-page-search-highlighting
> to highlight man pages, even with the given LESS_TERMCAP_* given in
> example.
See what I get at http://screencast.com/t/Z4i9AEQ0.
> What am I missing?
Thanks!
Best regards,
Seb
--
Sebastien Vauban
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Customize `less' colors to look like `most'
2015-05-05 19:06 ` Sebastien Vauban
@ 2015-05-06 22:29 ` Jim Reisert AD1C
2015-05-07 10:02 ` Sebastien Vauban
0 siblings, 1 reply; 4+ messages in thread
From: Jim Reisert AD1C @ 2015-05-06 22:29 UTC (permalink / raw)
To: cygwin
I couldn't get this to work in an X-term. The bottom line ("Manual
page less(1) line 1 ....") has a yellow background, but the text is
still white (or bold white) on black. Any secrets?
--
Jim Reisert AD1C, <jjreisert@alum.mit.edu>, http://www.ad1c.us
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Customize `less' colors to look like `most'
2015-05-06 22:29 ` Jim Reisert AD1C
@ 2015-05-07 10:02 ` Sebastien Vauban
0 siblings, 0 replies; 4+ messages in thread
From: Sebastien Vauban @ 2015-05-07 10:02 UTC (permalink / raw)
To: cygwin
Hello,
>>> I've tried to copy all sort of color schemes to try and get colors
>>> in the man pages -- for example, like what `most' does by default.
>>>
>>> I've never been successful to get something like
>>> http://stackoverflow.com/questions/10535432/tmux-man-page-search-highlighting
>>> to highlight man pages, even with the given LESS_TERMCAP_* given in
>>> example.
>>>
>>> What am I missing?
>>>
>>> Here is the relevant part of my .zshrc:
>>>
>>> PAGER="less"
>>>
>>> # Colored man pages:
>>> # http://linuxtidbits.wordpress.com/2009/03/23/less-colors-for-man-pages/
>>> export LESS_TERMCAP_mb=$'\E[01;31m' # enter_blink_mode
>>> export LESS_TERMCAP_md=$'\E[01;38;5;74m' # enter_bold_mode
>>> export LESS_TERMCAP_so=$'\E[38;5;016m\E[48;5;220m' # enter_standout_mode
>>> export LESS_TERMCAP_us=$'\E[04;38;5;146m' # enter_underline_mode
>>> export LESS_TERMCAP_me=$'\E[0m' # exit_attribute_mode
>>> export LESS_TERMCAP_se=$'\E[0m' # exit_standout_mode
>>> export LESS_TERMCAP_ue=$'\E[0m' # exit_underline_mode
>>>
>>> # tailoring `less'
>>> LESS="--quit-at-eof --ignore-case --long-prompt --raw-control-chars"
>>>
>>> And here is my .minttyrc:
>>>
>>> BoldAsColour=yes
>>> BoldAsFont=no
>>> Font=Consolas
>>> FontHeight=10
>>> RightClickAction=paste
>>> Rows=43
>>> ScrollbackLines=100000
>>> Term=xterm-256color
>>
>> See what I get at http://screencast.com/t/Z4i9AEQ0.
>
> I couldn't get this to work in an X-term. The bottom line ("Manual
> page less(1) line 1 ....") has a yellow background, but the text is
> still white (or bold white) on black.
You mean you couldn't reproduce the same colors for the "mode line" as
in my screenshot?
> Any secrets?
Those colors come from the following definition (copy/paste'd from
somewhere -- not so readeable to me):
--8<---------------cut here---------------start------------->8---
export LESS_TERMCAP_so=$'\E[38;5;016m\E[48;5;220m' # enter_standout_mode
--8<---------------cut here---------------end--------------->8---
Though, _my_ problem is to get colors for all the other elements (what's
bold, underlined, etc.).
Best regards,
Seb
--
Sebastien Vauban
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-05-07 9:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-05 14:55 Customize `less' colors to look like `most' Sebastien Vauban
2015-05-05 19:06 ` Sebastien Vauban
2015-05-06 22:29 ` Jim Reisert AD1C
2015-05-07 10:02 ` Sebastien Vauban
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).