Mapping "underline" to "colour" - how is the colour determined?

Andy Koppe andy.koppe@gmail.com
Sat Oct 15 08:19:00 GMT 2011


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



More information about the Cygwin mailing list