* Re: Mapping "underline" to "colour" - how is the colour determined? [not found] <1319041370.30348.ezmlm@cygwin.com> @ 2011-10-20 14:37 ` Ronald Fischer 2011-10-20 15:31 ` Marco Atzeri 0 siblings, 1 reply; 8+ messages in thread From: Ronald Fischer @ 2011-10-20 14:37 UTC (permalink / raw) To: cygwin, Robert Perlberg; +Cc: Andy Koppe Thanks a lot for the detailed instructions! > Now go create a new working directory somewhere, perhaps under your > home directory. In there, type: > infocmp cygwin >cygwin.txt Which package do I need to have infocmp installed? According to Setup, I have terminfo 5.7 installed. However, infocmp is not in my PATH, not is there a man page for it. Regards, Ronald -- Ronald Fischer <ronaldf@eml.cc> + If a packet hits a pocket on a socket on a port, + and the bus is interrupted and the interrupt's not caught, + then the socket packet pocket has an error to report. + (cited after Peter van der Linden) -- 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Mapping "underline" to "colour" - how is the colour determined? 2011-10-20 14:37 ` Mapping "underline" to "colour" - how is the colour determined? Ronald Fischer @ 2011-10-20 15:31 ` Marco Atzeri 0 siblings, 0 replies; 8+ messages in thread From: Marco Atzeri @ 2011-10-20 15:31 UTC (permalink / raw) To: cygwin On 10/20/2011 4:37 PM, Ronald Fischer wrote: > Thanks a lot for the detailed instructions! > >> Now go create a new working directory somewhere, perhaps under your >> home directory. In there, type: > >> infocmp cygwin>cygwin.txt > > Which package do I need to have infocmp installed? According to Setup, I > have terminfo 5.7 installed. However, infocmp is not in my PATH, not is > there a man page for it. > > Regards, > > Ronald > > http://cygwin.com/cgi-bin2/package-grep.cgi?grep=infocmp Regards Marco -- 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <1319205606.17035.ezmlm@cygwin.com>]
* Re: Mapping "underline" to "colour" - how is the colour determined? [not found] <1319205606.17035.ezmlm@cygwin.com> @ 2011-10-24 8:12 ` Ronald Fischer 2011-10-24 9:11 ` Marco Atzeri 0 siblings, 1 reply; 8+ messages in thread From: Ronald Fischer @ 2011-10-24 8:12 UTC (permalink / raw) To: cygwin; +Cc: Marco Atzeri >>> infocmp cygwin>cygwin.txt >> >> Which package do I need to have infocmp installed? According to Setup, I >> have terminfo 5.7 installed. However, infocmp is not in my PATH, not is >> there a man page for it. >> >http://cygwin.com/cgi-bin2/package-grep.cgi?grep=infocmp >Regards >Marco Hmm... Using this link, I get a search result of the following packages: ========================================================= Found 5 matches for infocmp ncurses/ncurses-5.7-16 Utilities for terminal handling ncurses/ncurses-5.7-18 Utilities for terminal handling ncursesw/ncursesw-5.7-18 Utilities for terminal handling tetex-bin/tetex-bin-2.0.2-15-src The TeX text formatting system (binaries). tetex-bin/tetex-bin-3.0.0-3-src The TeX text formatting system (binaries). ========================================================= Nothing which looks like infocmp.... Ronald -- Ronald Fischer <ronaldf@eml.cc> + If a packet hits a pocket on a socket on a port, + and the bus is interrupted and the interrupt's not caught, + then the socket packet pocket has an error to report. + (cited after Peter van der Linden) -- 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Mapping "underline" to "colour" - how is the colour determined? 2011-10-24 8:12 ` Ronald Fischer @ 2011-10-24 9:11 ` Marco Atzeri 0 siblings, 0 replies; 8+ messages in thread From: Marco Atzeri @ 2011-10-24 9:11 UTC (permalink / raw) To: Ronald Fischer; +Cc: cygwin On 10/24/2011 10:12 AM, Ronald Fischer wrote: >>>> infocmp cygwin>cygwin.txt >>> >>> Which package do I need to have infocmp installed? According to Setup, I >>> have terminfo 5.7 installed. However, infocmp is not in my PATH, not is >>> there a man page for it. >>> > >> http://cygwin.com/cgi-bin2/package-grep.cgi?grep=infocmp > >> Regards >> Marco > > Hmm... Using this link, I get a search result of the following packages: > > ========================================================= > Found 5 matches for infocmp > > ncurses/ncurses-5.7-16 Utilities for terminal handling > ncurses/ncurses-5.7-18 Utilities for terminal handling > ncursesw/ncursesw-5.7-18 Utilities for terminal handling > tetex-bin/tetex-bin-2.0.2-15-src The TeX text formatting > system (binaries). > tetex-bin/tetex-bin-3.0.0-3-src The TeX text formatting system > (binaries). > ========================================================= > > Nothing which looks like infocmp.... > > Ronald have you tried to enter in ncurses/ncurses-5.7-18 ? the search provide all the packages that match infocmp in the file list. Regards Marco -- 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Mapping "underline" to "colour" - how is the colour determined? @ 2011-10-14 13:18 Ronald Fischer 2011-10-14 19:43 ` Buchbinder, Barry (NIH/NIAID) [E] 2011-10-15 8:19 ` Andy Koppe 0 siblings, 2 replies; 8+ messages in thread From: Ronald Fischer @ 2011-10-14 13:18 UTC (permalink / raw) To: cygwin 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. Any suggestions? Ronald -- Ronald Fischer <ronaldf@eml.cc> + If a packet hits a pocket on a socket on a port, + and the bus is interrupted and the interrupt's not caught, + then the socket packet pocket has an error to report. + (cited after Peter van der Linden) -- Ronald Fischer <ronaldf@eml.cc> + If a packet hits a pocket on a socket on a port, + and the bus is interrupted and the interrupt's not caught, + then the socket packet pocket has an error to report. + (cited after Peter van der Linden) -- 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Mapping "underline" to "colour" - how is the colour determined? 2011-10-14 13:18 Ronald Fischer @ 2011-10-14 19:43 ` Buchbinder, Barry (NIH/NIAID) [E] 2011-10-15 8:19 ` Andy Koppe 1 sibling, 0 replies; 8+ messages in thread From: Buchbinder, Barry (NIH/NIAID) [E] @ 2011-10-14 19:43 UTC (permalink / raw) To: cygwin, 'Ronald Fischer' 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Mapping "underline" to "colour" - how is the colour determined? 2011-10-14 13:18 Ronald Fischer 2011-10-14 19:43 ` Buchbinder, Barry (NIH/NIAID) [E] @ 2011-10-15 8:19 ` Andy Koppe 2011-10-18 19:42 ` Robert Perlberg 1 sibling, 1 reply; 8+ messages in thread From: Andy Koppe @ 2011-10-15 8:19 UTC (permalink / raw) To: cygwin 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Mapping "underline" to "colour" - how is the colour determined? 2011-10-15 8:19 ` Andy Koppe @ 2011-10-18 19:42 ` Robert Perlberg 0 siblings, 0 replies; 8+ messages in thread From: Robert Perlberg @ 2011-10-18 19:42 UTC (permalink / raw) To: Andy Koppe; +Cc: cygwin [-- Attachment #1: Type: text/plain, Size: 3474 bytes --] On Oct 15, 2011, at 4:19 AM, Andy Koppe wrote: > 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 The "Graphic Rendition" of the text is controlled by a facility called Terminfo. Here's how you can change it. First, do: printenv TERM This should display "cygwin" as the terminal type. If not, replace "cygwin" in the following instructions with whatever terminal type you are using. The terminfo files are stored under /usr/share/terminfo. If you look there you will see several subdirectories with one and two-character names. Each terminfo entry is stored in a subdirectory which corresponds to the ASCII value of its first character in hex, so the "cygwin" file is in the "63" directory. You will also find a copy under the "c" directory, but that's not the one the system uses. I presume that the one-character directories are for backwards compatibility. Make a backup copy of the "cygwin" file so you can restore the original functionality in case you mess things up. Now go create a new working directory somewhere, perhaps under your home directory. In there, type: infocmp cygwin >cygwin.txt This will convert the binary terminfo file from /usr/share/terminfo/63 into a text file you can examine and edit. Edit the file with the text editor of your choice and locate the capabilities "smul" and "rmul". "smul" specifies the escape sequence that will be used to introduce "underlined" characters, and "rmul" is the sequence that turns this mode off. Set these values to whatever produces the effect you desire. (More on this below.) After editing the source file, type: tic cygwin.txt This "compiles" the source file back into the binary format and overwrites the original binary file in /usr/share/terminfo/63. There are ways to redirect it to another directory, but I'll leave you to figure that out for yourself. (man tic) Now run the man command and see if it produces the effect you want. As for how to figure out what escape sequence to use, unpack the attached file "sgr_options,txt" and cat it in the desired terminal window. Use "cat" rather than "less" or any other program that will filter the file contents. This will show you the effects of the different options to the SGR (Set Graphic Rendition) escape sequence. For "rmul" just use "\E[0m" which turns off all modes. [-- Attachment #2: sgr_options.txt --] [-- Type: text/plain, Size: 3843 bytes --] \E[1m ^[[1mThe quick brown fox...^[[0m \E[2m ^[[2mThe quick brown fox...^[[0m \E[3m ^[[3mThe quick brown fox...^[[0m \E[4m ^[[4mThe quick brown fox...^[[0m \E[5m ^[[5mThe quick brown fox...^[[0m \E[6m ^[[6mThe quick brown fox...^[[0m \E[7m ^[[7mThe quick brown fox...^[[0m \E[8m ^[[8mThe quick brown fox...^[[0m \E[9m ^[[9mThe quick brown fox...^[[0m \E[10m ^[[10mThe quick brown fox...^[[0m \E[11m ^[[11mThe quick brown fox...^[[0m \E[12m ^[[12mThe quick brown fox...^[[0m \E[13m ^[[13mThe quick brown fox...^[[0m \E[14m ^[[14mThe quick brown fox...^[[0m \E[15m ^[[15mThe quick brown fox...^[[0m \E[16m ^[[16mThe quick brown fox...^[[0m \E[17m ^[[17mThe quick brown fox...^[[0m \E[18m ^[[18mThe quick brown fox...^[[0m \E[19m ^[[19mThe quick brown fox...^[[0m \E[20m ^[[20mThe quick brown fox...^[[0m \E[21m ^[[21mThe quick brown fox...^[[0m \E[22m ^[[22mThe quick brown fox...^[[0m \E[23m ^[[23mThe quick brown fox...^[[0m \E[24m ^[[24mThe quick brown fox...^[[0m \E[25m ^[[25mThe quick brown fox...^[[0m \E[26m ^[[26mThe quick brown fox...^[[0m \E[27m ^[[27mThe quick brown fox...^[[0m \E[28m ^[[28mThe quick brown fox...^[[0m \E[29m ^[[29mThe quick brown fox...^[[0m \E[30m ^[[30mThe quick brown fox...^[[0m \E[31m ^[[31mThe quick brown fox...^[[0m \E[32m ^[[32mThe quick brown fox...^[[0m \E[33m ^[[33mThe quick brown fox...^[[0m \E[34m ^[[34mThe quick brown fox...^[[0m \E[35m ^[[35mThe quick brown fox...^[[0m \E[36m ^[[36mThe quick brown fox...^[[0m \E[37m ^[[37mThe quick brown fox...^[[0m \E[38m ^[[38mThe quick brown fox...^[[0m \E[39m ^[[39mThe quick brown fox...^[[0m \E[40m ^[[40mThe quick brown fox...^[[0m \E[41m ^[[41mThe quick brown fox...^[[0m \E[42m ^[[42mThe quick brown fox...^[[0m \E[43m ^[[43mThe quick brown fox...^[[0m \E[44m ^[[44mThe quick brown fox...^[[0m \E[45m ^[[45mThe quick brown fox...^[[0m \E[46m ^[[46mThe quick brown fox...^[[0m \E[47m ^[[47mThe quick brown fox...^[[0m \E[48m ^[[48mThe quick brown fox...^[[0m \E[49m ^[[49mThe quick brown fox...^[[0m \E[50m ^[[50mThe quick brown fox...^[[0m \E[51m ^[[51mThe quick brown fox...^[[0m \E[52m ^[[52mThe quick brown fox...^[[0m \E[53m ^[[53mThe quick brown fox...^[[0m \E[54m ^[[54mThe quick brown fox...^[[0m \E[55m ^[[55mThe quick brown fox...^[[0m \E[56m ^[[56mThe quick brown fox...^[[0m \E[57m ^[[57mThe quick brown fox...^[[0m \E[58m ^[[58mThe quick brown fox...^[[0m \E[59m ^[[59mThe quick brown fox...^[[0m \E[60m ^[[60mThe quick brown fox...^[[0m \E[61m ^[[61mThe quick brown fox...^[[0m \E[62m ^[[62mThe quick brown fox...^[[0m \E[63m ^[[63mThe quick brown fox...^[[0m \E[64m ^[[64mThe quick brown fox...^[[0m \E[65m ^[[65mThe quick brown fox...^[[0m \E[66m ^[[66mThe quick brown fox...^[[0m \E[67m ^[[67mThe quick brown fox...^[[0m \E[68m ^[[68mThe quick brown fox...^[[0m \E[69m ^[[69mThe quick brown fox...^[[0m \E[70m ^[[70mThe quick brown fox...^[[0m \E[71m ^[[71mThe quick brown fox...^[[0m \E[72m ^[[72mThe quick brown fox...^[[0m \E[73m ^[[73mThe quick brown fox...^[[0m \E[74m ^[[74mThe quick brown fox...^[[0m \E[75m ^[[75mThe quick brown fox...^[[0m \E[76m ^[[76mThe quick brown fox...^[[0m \E[77m ^[[77mThe quick brown fox...^[[0m \E[78m ^[[78mThe quick brown fox...^[[0m \E[79m ^[[79mThe quick brown fox...^[[0m \E[80m ^[[80mThe quick brown fox...^[[0m \E[81m ^[[81mThe quick brown fox...^[[0m \E[82m ^[[82mThe quick brown fox...^[[0m \E[83m ^[[83mThe quick brown fox...^[[0m \E[84m ^[[84mThe quick brown fox...^[[0m \E[85m ^[[85mThe quick brown fox...^[[0m \E[86m ^[[86mThe quick brown fox...^[[0m \E[87m ^[[87mThe quick brown fox...^[[0m \E[88m ^[[88mThe quick brown fox...^[[0m \E[89m ^[[89mThe quick brown fox...^[[0m \E[90m ^[[90mThe quick brown fox...^[[0m \E[91m ^[[91mThe quick brown fox...^[[0m \E[92m ^[[92mThe quick brown fox...^[[0m \E[93m ^[[93mThe quick brown fox...^[[0m \E[94m ^[[94mThe quick brown fox...^[[0m \E[95m ^[[95mThe quick brown fox...^[[0m \E[96m ^[[96mThe quick brown fox...^[[0m \E[97m ^[[97mThe quick brown fox...^[[0m \E[98m ^[[98mThe quick brown fox...^[[0m \E[99m ^[[99mThe quick brown fox...^[[0m [-- Attachment #3: Type: text/plain, Size: 2 bytes --] [-- Attachment #4: Type: text/plain, Size: 218 bytes --] -- 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 ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-10-24 9:11 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <1319041370.30348.ezmlm@cygwin.com> 2011-10-20 14:37 ` Mapping "underline" to "colour" - how is the colour determined? Ronald Fischer 2011-10-20 15:31 ` Marco Atzeri [not found] <1319205606.17035.ezmlm@cygwin.com> 2011-10-24 8:12 ` Ronald Fischer 2011-10-24 9:11 ` Marco Atzeri 2011-10-14 13:18 Ronald Fischer 2011-10-14 19:43 ` Buchbinder, Barry (NIH/NIAID) [E] 2011-10-15 8:19 ` Andy Koppe 2011-10-18 19:42 ` Robert Perlberg
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).