delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/10/15/04:19:30

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <1318598287.3598.140660985920089@webmail.messagingengine.com>
References: <1318598287 DOT 3598 DOT 140660985920089 AT webmail DOT messagingengine DOT com>
Date: Sat, 15 Oct 2011 09:19:01 +0100
Message-ID: <CAHWeT-b-X+ob9+p9wssfRG+EE0VrOC8sUGC_J_rCdFR6ck14Qw@mail.gmail.com>
Subject: Re: Mapping "underline" to "colour" - how is the colour determined?
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 14 October 2011 14:18, Ronald Fischer wrote:
> When I (to give an example) execute a "man" command within a mintty
> window, and do the same within a "normal" Windows console window, I see
> that those words represented as underlined words in the mintty
> window, are represented by a different colour in the Windows console
> windows.
>
> I guess this different has nothing to do with the "man" command, but by
> the way the terminal definition says how render "emphasized" words.
> Since the Windows console (likely) can't underline, colouring is used.
> It's kind of a "terminal property". Do I understand this correctly?

Yep.

> I would like to understand, where this mapping to a certain colour is
> done. Reason is that the colour used for my Windows console window, is a
> bit hard to read and I would like to change it.

It's hardcoded in the Cygwin DLL (in
winsup/cygwin/fhandler_console.cc), so you'd have to build that
yourself to change it.

Getting man/groff to use something other than the underline attribute
might be the better approach, but I don't know how to do that.

Andy

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019