From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65459 invoked by alias); 7 May 2015 09:19:31 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 64829 invoked by uid 89); 7 May 2015 09:19:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.7 required=5.0 tests=AWL,BAYES_50,LIKELY_SPAM_FROM,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 07 May 2015 09:19:29 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YqHxl-0002VH-Cs for cygwin@cygwin.com; Thu, 07 May 2015 11:19:25 +0200 Received: from dd5e0353a.access.telenet.be ([213.224.53.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 May 2015 11:19:25 +0200 Received: from sva-news by dd5e0353a.access.telenet.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 May 2015 11:19:25 +0200 To: cygwin@cygwin.com From: Sebastien Vauban Subject: Re: Customize `less' colors to look like `most' Date: Thu, 07 May 2015 10:02:00 -0000 Message-ID: <86ioc4kanz.fsf@example.com> References: <86mw1j6pza.fsf@example.com> <86ioc76ptc.fsf@example.com> Mime-Version: 1.0 Content-Type: text/plain X-Url: Under construction... X-Archive: encrypt User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00090.txt.bz2 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