X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org X-IronPortListener: Outbound_SMTP X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoMAADqQmE6cKEcU/2dsb2JhbABDmT+PKIEFgW4BAQEEEihPAgEIDScCEB8TFwENAQEEARoapAKbOoMlg3NhBIwfjR+MKg From: "Buchbinder, Barry (NIH/NIAID) [E]" To: "cygwin AT cygwin DOT com" , "'Ronald Fischer'" Date: Fri, 14 Oct 2011 15:43:10 -0400 Subject: RE: Mapping "underline" to "colour" - how is the colour determined? Message-ID: <0105D5C1E0353146B1B222348B0411A20A311FAEAC@NIHMLBX02.nih.gov> References: <1318598287 DOT 3598 DOT 140660985920089 AT webmail DOT messagingengine DOT com> In-Reply-To: <1318598287.3598.140660985920089@webmail.messagingengine.com> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p9EJhZCL022488 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 more suggestive. $ man -S 5 man.conf Assuming that the above is useful, where one goes from there is left as an exercise for someone else. Good Luck, - Barry Disclaimer: Statements made herein are not made on behalf of NIAID. -- 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