This is the mail archive of the
mailing list for the Cygwin project.
RE: Mapping "underline" to "colour" - how is the colour determined?
- From: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder at niaid dot nih dot gov>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>, 'Ronald Fischer' <ynnor at mm dot st>
- Date: Fri, 14 Oct 2011 15:43:10 -0400
- Subject: RE: Mapping "underline" to "colour" - how is the colour determined?
- References: <firstname.lastname@example.org>
Ronald Fischer sent the following at Friday, October 14, 2011 9:18 AM
>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?
>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.
I don't know, but ...
Looking at the output of man, it seems that man formats with backspace
("<^H>"), e.g., bold X is X<^H>X and underlined Y is _<^H>Y.
Looking at /etc/defaults/etc/man.conf suggests to me that TROFF or
NROFF might be involved. Reading the manual page for man.conf is even
$ man -S 5 man.conf
Assuming that the above is useful, where one goes from there is left as
an exercise for someone else.
Disclaimer: Statements made herein are not made on behalf of NIAID.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple