public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Sebastien Vauban <sva-news@mygooglest.com>
To: cygwin@cygwin.com
Subject: Customize `less' colors to look like `most'
Date: Tue, 05 May 2015 14:55:00 -0000	[thread overview]
Message-ID: <86mw1j6pza.fsf@example.com> (raw)

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

             reply	other threads:[~2015-05-05 14:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-05 14:55 Sebastien Vauban [this message]
2015-05-05 19:06 ` Sebastien Vauban
2015-05-06 22:29   ` Jim Reisert AD1C
2015-05-07 10:02     ` Sebastien Vauban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86mw1j6pza.fsf@example.com \
    --to=sva-news@mygooglest.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).