OhmNomNom / thyme

A fork of mintty, for the modern world
GNU General Public License v3.0
0 stars 0 forks source link

Underscore as font style and color #249

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Would it be possible to enhance mintty so that in man pages the underscored 
text would show up as blue, like what is shown when using Cygwin to view man 
pages? (I'm using mintty 0.9.5)  I really like mintty, but miss the improved 
man page readability I got with Cygwin.

Attached are screenshots of the mintty man page viewed in both Cygwin and in 
mintty.

Original issue reported on code.google.com by ambl...@gmail.com on 10 Feb 2011 at 10:44

Attachments:

GoogleCodeExporter commented 9 years ago
Right, I've pondered this long enough.

Mintty certainly can't do this specifically for man pages, since it generally 
doesn't know what program the output it displays is coming from. However, I 
suspect it's possible to configure groff (the tool that's used to display man 
pages) to render normally underlined text with colour instead. I don't know how 
to do that though. Might be a good question for the groff mailing list or 
unix.stackexchange.com. Do let me know if you do find out how to do it.

Mintty could optionally display the underline attribute as colour everywhere, 
but there are obvious problems with that: it can't be distinguished from text 
that's actually meant to be in that colour, and when both underline and a 
colour are specified, one of them has to be ignored.

Text with the underline attribute obviously is meant to be underlined if 
possible, and that's what other graphical terminals such as Konsole and 
gnome-terminal do, and I think it's also what man page authors would expect.

The underline-as-colour approach in the Cygwin console (and also the Linux 
console) is just a workaround for actual underlined text not being available.

In summary, I'm not keen on adding an option for this.

Original comment by andy.koppe on 17 Feb 2011 at 12:39