[OT] RE: How to set the colors of terminfo's standout mode?
-Original Message- From: cygwin-owner On Behalf Of Alejandro López-Valencia Sent: 30 April 2004 19:55 [Lots of idiocy deleted. I will not answer to kindergarten frolics.] Then what's this, if not an answer? Mr. Korn, You couldn't take a hint to move the argument to a private conversation Heh. Alejandro sent me a sarcastic off-list email, the gist of which was that comments about remedial english lessons are sensible and helpful contributions to the list, but anything that I say is sarcasm, bad and wrong. I sent a private reply back to him, but tricked him into thinking I had Cc'd the list with a reply that quoted his private mail. Hence this little emotional outburst. IJM. sarcastic, efforts that, for as long as I have being a witness, end in insult and philandering. You don't know what that word means, or you wouldn't have used it there. I still think you aren't in any position to offer remedial english lessons to anyone. I shall ask that you desist of sending private email. I have no interest in having any kind of exchange with you after your public display of uncivilized behavior. I have no problem with that. I won't even reply to your public mails anymore either; for the sake of peace and quiet on the list I'll just put you straight into my kf. HTH. cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
Reini Urban wrote: Frank Slootweg schrieb: A better solution would be one which 1) does *not* hardcode the colors, 2) *does* use inverse video (7) and 3) displays white-on-black. Oh god, this man is insisting. The default white color on terms without being able to change faces is lightgrey! White is used for bold on such stupid terms, which is a more important emphasis to have than white. Or how to define bold white then? Some better terminals, like rxvt, know how to render Courier-Bold or Lucida-Bold, but CMD.EXE not. Since our default is CMD.EXE and not rxvt, your desiderations (white on black) are bogus. Well, as my test showed, I *can* do white by bolding (1). The point is that when combined with inverse/reverse video (7), the background color is not black but dark-grey. What is your explanation for the background being dark-grey for inverse/reverse video? As to my bogus desiderations, the concept of inverse (or reverse) video already exists since the seventies (or earlier), and, as I wrote in my basenote and later reproduced with simple echo(1) commands, Cygwin B20 has *no* problems with it, so it is not a question of the 'terminal' (i.e. CMD.EXE in my case) being too limited, but of Cygwin. A better solution would be one which 1) does *not* hardcode the colors, 2) *does* use inverse video (7) and 3) displays white-on-black. The only better solution is to use a term (rxvt) which can do this. Use TERM=rxvt-cygwin-native then and not TERM=cygwin. See above. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
Frank Slootweg schrieb: Reini Urban wrote: Frank Slootweg schrieb: A better solution would be one which 1) does *not* hardcode the colors, 2) *does* use inverse video (7) and 3) displays white-on-black. Oh god, this man is insisting. The default white color on terms without being able to change faces is lightgrey! White is used for bold on such stupid terms, which is a more important emphasis to have than white. Or how to define bold white then? Some better terminals, like rxvt, know how to render Courier-Bold or Lucida-Bold, but CMD.EXE not. Since our default is CMD.EXE and not rxvt, your desiderations (white on black) are bogus. Well, as my test showed, I *can* do white by bolding (1). The point is that when combined with inverse/reverse video (7), the background color is not black but dark-grey. What is your explanation for the background being dark-grey for inverse/reverse video? Because it is *bold* then, and bold with CMD.EXE ANSI.SYS (or COMMAND.COM + ANSI.SYS) changes the color and doesn't change the face. As to my bogus desiderations, the concept of inverse (or reverse) video already exists since the seventies (or earlier), and, as I wrote in my basenote and later reproduced with simple echo(1) commands, Cygwin B20 has *no* problems with it, so it is not a question of the 'terminal' (i.e. CMD.EXE in my case) being too limited, but of Cygwin. The new cgywin does it _right_ according to my explanation, favoring boldness over color-matching. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
Frank Slootweg schrieb: A better solution would be one which 1) does *not* hardcode the colors, 2) *does* use inverse video (7) and 3) displays white-on-black. Oh god, this man is insisting. The default white color on terms without being able to change faces is lightgrey! White is used for bold on such stupid terms, which is a more important emphasis to have than white. Or how to define bold white then? Some better terminals, like rxvt, know how to render Courier-Bold or Lucida-Bold, but CMD.EXE not. Since our default is CMD.EXE and not rxvt, your desiderations (white on black) are bogus. A better solution would be one which 1) does *not* hardcode the colors, 2) *does* use inverse video (7) and 3) displays white-on-black. The only better solution is to use a term (rxvt) which can do this. Use TERM=rxvt-cygwin-native then and not TERM=cygwin. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
Thanks all for your responses. Barry, you have given me a workaround and enabled me to find a second workaround! If people still want to try to find a better solution, I have 'attached' instructions on how to (try to) reproduce the problem. Barry Buchbinder wrote: [deleted] It is a fact of color: the only difference between grey and white is intensity; any white can be made to look grey when compared to a more intense white. What you see as light grey is what was long ago in IBM PC land defined as white so that what you want to call white could be used for bold. (Indeed, black can also be relative, being varying shades of dark grey, until on gets down to true black (zero photons).) The 1 makes the foreground color more intense. 5 should cause blinking but may end up making the background color more intense. Try \cygwin\bin\echo -en 'Normal. \033[30;47;5mBlack on while.\033[0;37;40m Normal again.' to get black on white. That did not work (Normal. is normal (i.e. black on white), Black on while. is also normal (black on white) and Normal again. is lightgrey-on-black and the display stays that way instead of going back to normal black on white). But not to worry, read on. The script in http://sources.redhat.com/ml/cygwin/2004-04/msg01161.html should show you how everything looks on your system. (When, as is my 'need', starting with black text on a white background,) The only combination which shows the desired white-on-black is 1;37;40 (more about that later). The 7 = reverse video = 30;47 part is displayed as black-on-lightgrey. The best I get so far is: \cygwin\bin\echo -en '\033[37;40mThis is a text.\033[30;0m' Which gives me light-grey (instead of the desired white) text on a black (as desired) background. Try \cygwin\bin\echo -en '\033[1;37;40mThis is a text.\033[30;0m' The added 1 bolds the 37, which should turn foreground light-grey to real white. Thanks! That indeed displays as the desired white-on-black. The disavantage of this is that it is hardcoded, i.e. for my normal black-on-white it effectively is 'inverse-video', however for other normal (non-inverse) colors, it would not be inverse-video, but just white-on-black. Read on. Now that I knew the effect of 1 (bold), I continued with the escape sequences which I got from Cygwin B20's /etc/termcap entry for cygwin (= linux): mr=\E[7m:so=\E[7m:se=\E[m I came up with: \cygwin\bin\echo -en '\033[1;7mThis is a text.\033[0m' which gives white (desired) text on a dark-grey (undesired) background. This is my second workaround. It has better contrast than the default (lightgrey-on-darkgrey), but less contrast than the above hardcoded white-on-black. The advantage of this workaround is that the colors are not hardcoded, i.e. I just say bold and inverse video. While not ideal, these workarounds will do for now. Now I will have to get them into a new terminfo entry (Yes, I know how to do that, but have to install untic and friends, etc..). What next? == In case anyone wants to try reproduce my problem and then try to find a better solution: [FWIW, I have Windows XP (Professional).] [While I have the problem in a 'DOS', i.e. non-(bash-)shell window, I will give the procedure for a default bash window, because that is probably easier.] - Start with the default bash window [1] that came with Cygwin (in my case 1.3.x, since updated to 1.5.9): Start - All Programs - Cygwin - Cygwin Bash Shell. - Temporarily change the forground/background colors: Click on the upper-left icon - Properties - Colors - Screen Text to black (0/0/0) and Screen Background to white (255/255/255). In case it matters, my Font is the default, Raster Fonts with Size 8 x 12. - echo -en '\033[7mThis is a text.\033[0m' This will probably be lightgrey-on-darkgrey. If so, you have reproduced my problem (because I want white-on-black). - /bin/echo -en '\033[1;37;40mThis is a text.\033[30;0m' This will probably be white-on-black, i.e. the hardcoded workaround which Barry gave. - /bin/echo -en '\033[1;7mThis is a text.\033[0m' This will probably be white-on-darkgrey, i.e. the second workaround which I gave. A better solution would be one which 1) does *not* hardcode the colors, 2) *does* use inverse video (7) and 3) displays white-on-black. [1] I.e. the ('DOS') Command Prompt-like window which is started by the shorcut which executes (Target:) C:\cygwin\cygwin.bat, which contains: [Start cygwin.bat:] @echo off C: chdir C:\cygwin\bin bash --login -i [End cygwin.bat] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: How to set the colors of terminfo's standout mode?
[Lots of idiocy deleted. I will not answer to kindergarten frolics.] Mr. Korn, You couldn't take a hint to move the argument to a private conversation and rather chose to make another fine display of your poor attempts at being sarcastic, efforts that, for as long as I have being a witness, end in insult and philandering. So, is that your troll-o-meter in action? It takes one to know one. I have read this list regularly for six months, and in that time, all I have seen written by you is patronizing at best and insulting at worst. Therefore, I am not a bit surprised with your reaction. As I have no vested interest in earning a gold star through the sheer power of flooding the list with pseudo-sarcastic bullying, I won't be the one to steal your immature need to have the last word. Be my guest, go ahead and have it. I shall ask that you desist of sending private email. I have no interest in having any kind of exchange with you after your public display of uncivilized behavior. Therefore, I repeat again: I am finished with this matter. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
--On Wednesday, April 28, 2004 16:54:37 -0500 Alejandro López-Valencia wrote: At 07:56 a.m. 28/04/2004, Frank Slootweg wrote: Is there a place where all these (I assume ANSI) escape sequences for colors are listed? When I have that information, I can probably untic an existing terminfo entry, modify it and tic it back to another name and use that. The one I use came with the documentation of an ftp/sftp client I use, yafc. Tis information is very hard to come by if one is in a bind, so I'll include it here. Yafc's info file says: The escape sequences are defined in ECMA-048, a link to the PDF is at http://www.ecma-international.org/publications/standards/Ecma-048.htm. This has also been adopted as ISO 6429, but ISO does not offer a free downloadable version. It is not the easiest of documents to decipher, but the colour codes are on page 62, part of the section 8.3.117 SGR - SELECT GRAPHIC RENDITION. You can string together many codes between the 'ESC[' and 'm', separated by semicolons, but which ones work varies depending on what has been implemented in the kind of terminal, and perhaps also on other settings. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
Alejandro López-Valencia wrote: The one I use came with the documentation of an ftp/sftp client I use, yafc. Tis information is very hard to come by if one is in a bind, so I'll include it here. Yafc's info file says: Really? Google for ansi escape sequences and you'll get dozens of hits with the info. My favorite is http://vt100.net/docs/vt100-ug/contents.html which is a faithful reproduction of the original digital VT100 user's guide from 1981. Of course that doesn't translate directly to the subset of DOS ansi.sys that CMD.EXE recognises, but anyway. To the original poster: Why not use rxvt? It allows much greater control of the colors of every text attribute, and I find it superior to CMD.EXE in every aspect -- copy/paste, scrolling speed, etc. It does not require X11, it will work just fine with no X server running. It autodetects this at startup. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
Thanks, Alejandro and Hannu, for your additional responses. I am again getting closer, but still not there. Please bear with me. At the time, I did not quite understand this part from Alejandro: A OK. In my experience, you can set the fg/bg colors the way you want A by modifying the system settings in the shortcut (right-click on A window bar and modify properties there), or by using *bold colors* in A your definitions. For some reason, in the win32 console \e[00;30m is A grey and \e[01;30m is white. Now that I know what these escape sequences mean (thanks to the document which Alejandro posted and [1]), I understand that part better. However, *whatever* I do, I can never get the text/foreground color white. 37 should do that, but it gives me light-grey instead (192/192/192 in Selected Color Values of Properties). Also Alejandro's escape sequences do not work for me. \e[00;30m gives me black text on a white background (i.e. no change) and \e[01;30m gives me light-grey text on a white background. 01 is Bold, so according to Alejandro that should give me white (text), but it gives me light-grey. The best I get sofar is: \cygwin\bin\echo -en '\033[37;40mThis is a text.\033[30;0m' Which gives me light-grey (instead of the desired white) text on a black (as desired) background. I still did not understand why the old (tin) executable on the old Cygwin B20 release could give white on black, because it seems to be a pure Win32 console issue. B20 apparently used /etc/termcap instead of terminfo (there is no terminfo directory), but also the B20 /etc/termcap (cygwin = linux) escape sequences for rev/mr, smso/so and rmso/se give light-grey on dark-grey (instead of white on black). Those escape sequences were mr=\E[7m:so=\E[7m:se=\E[m However *those* (\E[7m and se=\E[m) escape sequences *do* bring me closer: If I use *those* (\E[7m and se=\E[m) escape sequences with *B20*'s echo(1) command, I *do* get white (desired) text on black (desired) background, while with the *new* (1.5.9) echo(1) command, I get light-grey (undesired) on dark-grey (undesired). I.e. in short: With B20 versus 1.5.9 echo(1) commands, I see the *exact same* behaviour as I see with the B20 versus 1.5.9 tin executables! So it seems that this is not a terminfo problem, but another type of Cygwin problem and that even something as simple as echo(1) is somehow 'terminal/color aware [2]! Anyone any idea *where* those (echo(1) et al related) color settings can be set? I.e. what makes 1.5.9's echo(1) command display a white-on-black escape sequence as lightgrey-on-black or lightgrey-on- darkgrey? [1] Linux Magazine September 2003 POWER TOOLS Escape Sequences Useful Text that You Can't See: http://www.linux-mag.com/downloads/2003-09/power/escape_sequences.html [2] For some reason *DOS* echo, type and copy ... con commands *display* [3] the escape characters instead of executing them, so I had to use echo(1). If someone knows a way to let *DOS* commands execute escape sequences insteas of displaying them, then please let me know. [3] Where the escape character is displayed as a (1-character) back-arrow character. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
Frank Slootweg wrote: [2] For some reason *DOS* echo, type and copy ... con commands *display* [3] the escape characters instead of executing them, so I had to use echo(1). If someone knows a way to let *DOS* commands execute escape sequences insteas of displaying them, then please let me know. If you truly mean DOS, as in Win9x and not any of the NT-style command prompts, then you need to load ANSI.SYS in config.sys. The DOS console (if you could even call it that) does not know anything of escape sequences, so you need a device driver to interpret them. As a side note, your command: echo -en '\033[37;40mThis is a text.\033[30;0m' Gives the desired White on Black for me under rxvt invoked as such: rxvt -fn Lucida ConsoleP-11 -sr -e /bin/bash -li or just: rxvt -e /bin/bash -li I'm baffled at why you continue to try to force the inferior Windows command prompt to do what you want. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
At 06:38 a.m. 29/04/2004, Brian Dessent wrote: The one I use came with the documentation of an ftp/sftp client I use, yafc. Tis information is very hard to come by if one is in a bind, so I'll include it here. Yafc's info file says: Really? Google for ansi escape sequences and you'll get dozens of hits with the info. My favorite is If you really read my sentence above you would have recognized the sentence This information is very hard to come by if one is in a bind. Which idiomatic USA English for You never find this information in time when you really need it. Am I clear, or are you in need of remedial English? Still working in increasing my meanness to the level that make justice to my despise of low-IQ Internet users. -- Alejandro López-Valencia http://dradul.tripod.com/ The limits of my language are the limits of my world. (L. Wittgenstein) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: How to set the colors of terminfo's standout mode?
-Original Message- From: Frank Slootweg Sent: Thursday, April 29, 2004 9:28 AM To: [EMAIL PROTECTED] Subject: Re: How to set the colors of terminfo's standout mode? Thanks, Alejandro and Hannu, for your additional responses. I am again getting closer, but still not there. Please bear with me. At the time, I did not quite understand this part from Alejandro: A OK. In my experience, you can set the fg/bg colors the way you want A by modifying the system settings in the shortcut (right-click on A window bar and modify properties there), or by using *bold colors* in A your definitions. For some reason, in the win32 console \e[00;30m is A grey and \e[01;30m is white. Now that I know what these escape sequences mean (thanks to the document which Alejandro posted and [1]), I understand that part better. However, *whatever* I do, I can never get the text/foreground color white. 37 should do that, but it gives me light-grey instead (192/192/192 in Selected Color Values of Properties). Also Alejandro's escape sequences do not work for me. \e[00;30m gives me black text on a white background (i.e. no change) and \e[01;30m gives me light-grey text on a white background. 01 is Bold, so according to Alejandro that should give me white (text), but it gives me light-grey. It is a fact of color: the only difference between grey and white is intensity; any white can be made to look grey when compared to a more intense white. What you see as light grey is what was long ago in IBM PC land defined as white so that what you want to call white could be used for bold. (Indeed, black can also be relative, being varying shades of dark grey, until on gets down to true black (zero photons).) The 1 makes the foreground color more intense. 5 should cause blinking but may end up making the background color more intense. Try \cygwin\bin\echo -en 'Normal. \033[30;47;5mBlack on while.\033[0;37;40m Normal again.' to get black on white. The script in http://sources.redhat.com/ml/cygwin/2004-04/msg01161.html should show you how everything looks on your system. The best I get so far is: \cygwin\bin\echo -en '\033[37;40mThis is a text.\033[30;0m' Which gives me light-grey (instead of the desired white) text on a black (as desired) background. Try \cygwin\bin\echo -en '\033[1;37;40mThis is a text.\033[30;0m' The added 1 bolds the 37, which should turn foreground light-grey to real white. I still did not understand why the old (tin) executable on the old Cygwin B20 release could give white on black, because it seems to be a pure Win32 console issue. B20 apparently used /etc/termcap instead of terminfo (there is no terminfo directory), but also the B20 /etc/termcap (cygwin = linux) escape sequences for rev/mr, smso/so and rmso/se give light-grey on dark-grey (instead of white on black). Those escape sequences were mr=\E[7m:so=\E[7m:se=\E[m However *those* (\E[7m and se=\E[m) escape sequences *do* bring me closer: If I use *those* (\E[7m and se=\E[m) escape sequences with *B20*'s echo(1) command, I *do* get white (desired) text on black (desired) background, while with the *new* (1.5.9) echo(1) command, I get light-grey (undesired) on dark-grey (undesired). I.e. in short: With B20 versus 1.5.9 echo(1) commands, I see the *exact same* behaviour as I see with the B20 versus 1.5.9 tin executables! So it seems that this is not a terminfo problem, but another type of Cygwin problem and that even something as simple as echo(1) is somehow 'terminal/color aware [2]! Anyone any idea *where* those (echo(1) et al related) color settings can be set? I.e. what makes 1.5.9's echo(1) command display a white-on-black escape sequence as lightgrey-on-black or lightgrey-on- darkgrey? [1] Linux Magazine September 2003 POWER TOOLS Escape Sequences Useful Text that You Can't See: http://www.linux-mag.com/downloads/2003-09/power/escape_sequences.html [2] For some reason *DOS* echo, type and copy ... con commands *display* [3] the escape characters instead of executing them, so I had to use echo(1). If someone knows a way to let *DOS* commands execute escape sequences instead of displaying them, then please let me know. This is normal if ansi.sys is not loaded. (In config.sys, device=ansi.sys or the like.) ansi.sys is what interprets the ansi escape commands. On XP, one cannot load ansi.sys into cmd.exe, but one can load it into command.com. (I think command.com uses the DOS subsyem, while cmd.exe is an NT console program.) Presumably, cygwin performed some of its magic when you used its echo even in a DOS box. [3] Where the escape character is displayed as a (1-character) back-arrow character. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
At 10:11 a.m. 29/04/2004, you wrote: Still working in increasing my meanness to the level that make justice to my despise of low-IQ Internet users. And on remembering that this keyboard is slower than my fingers... :-) -- Alejandro López-Valencia http://dradul.tripod.com/ The limits of my language are the limits of my world. (L. Wittgenstein) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
At 08:27 a.m. 29/04/2004, Frank Slootweg wrote: Also Alejandro's escape sequences do not work for me. \e[00;30m gives me black text on a white background (i.e. no change) and \e[01;30m gives me light-grey text on a white background. 01 is Bold, so according to Alejandro that should give me white (text), but it gives me light-grey. My mistake. I spoke from the top of my head, as you see in the code listing I sent yesterday, White is actually \e[01;37m. Barry Buchbinder's explanation is far clearer than anything I would be able to come up with. Hope that it gets you on your way. Cheers Alejo -- Alejandro López-Valencia http://dradul.tripod.com/ The limits of my language are the limits of my world. (L. Wittgenstein) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: How to set the colors of terminfo's standout mode?
-Original Message- From: cygwin-owner On Behalf Of Alejandro López-Valencia Sent: 29 April 2004 16:11 At 06:38 a.m. 29/04/2004, Brian Dessent wrote: The one I use came with the documentation of an ftp/sftp client I use, yafc. Tis information is very hard to come by if one is in a bind, so I'll include it here. Yafc's info file says: Really? Google for ansi escape sequences and you'll get dozens of hits with the info. My favorite is If you really read my sentence above you would have recognized the sentence This information is very hard to come by if one is in a bind. Which idiomatic USA English for You never find this information in time when you really need it. Am I clear, or are you in need of remedial English? C) None of the above. Anything which you can find dozens of hits for in a matter of a few seconds simply by entering the most obvious possible search string into google just is *not* hard to come by. Still working in increasing my meanness to the level that make justice to my despise of low-IQ Internet users. Don't make me get my troll-o-meter out again. You wouldn't like it if I did that! cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
Alejandro López-Valencia wrote: If you really read my sentence above you would have recognized the sentence This information is very hard to come by if one is in a bind. Which idiomatic USA English for You never find this information in time when you really need it. Am I clear, or are you in need of remedial English? I'm sorry, I cannot relate to your obviously substandard skills at searching the internet. I've never found Googling for simple keywords to ever be slower than waiting for someone to spoon feed me on a mailing list, whether in a bind or not. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
Hannu E K Nevalainen wrote: From: [deleted] On Behalf Of Frank Slootweg FWIW: $ cat ~/.Xdefaults # XTerm == rxvt as rxvt simulates xterm rxvt.background:black rxvt.foreground:grey rxvt.visualBell:true ... I know these things get explained in some man/info-page that I currently am too lazy to look up. (man/info rxvt?) Note that I am *not* using an X terminal (emulator), but a Command Prompt 'DOS' window. AFAIK, the X settings do not apply in that case. Anyway, I do not even have a .Xdefaults file (anywhere) and my background is white, not black. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
Alejandro López-Valencia wrote: At 03:05 a.m. 27/04/2004, Frank Slootweg wrote: Please? On April 20, I wrote: How can I set the colors of terminfo's standout (smso, so) mode? I have a terminfo application (tin, the newsreader) which, as far as [snip] I now rebuilt (configure,/make, compile, link, etc.) the application on Cygwin 1.5.9. That new version displays standout mode as light-grey text on a dark-grey background, i.e. little contrast and very hard to read. Basically I want the old behaviour (white-on-black) on Cygwin 1.5.9, but have no idea how/where that can be set. Have you read the man page? Particularly the section titled: GLOBAL OPTIONS MENU AND TINRC CONFIGURABLE VARIABLES where it documents how you can set up screen colors by editing tinrc? My knowledge on this topic stops here (I use slrn with jwk patches, best offline news reading I've done ever). I just happen to have tin's man page in /var/spool/cache/man/cat1 yet [1]). Yes, but (AFAIK) the col_* variables apply only if you use a color 'terminal' (i.e. not a mono-chrome (grey tones) one). Anyway, col_invers_fg was set to white (7) and _bg to blue (4), while the actual display was light-grey on dark-grey. Changing the _bg to black (0) also had no effect. So I think the standout/'inverse video' colors are set somewhere else, but I do not know where. That is the problem, and is confirmed by the fact that tput smso shows the same behaviour. (BTW, the normal, non-inverse-video, colors for a Command Prompt 'DOS' window are set in the Properties of that window, but there there are no settings for inverse-video.) Some more information: The application is started from a Command Prompt 'DOS' window, i.e. not from a (bash) shell. However when I do [snip] If you are running in a plain Windows console with command.com or cmd.exe as shell, you should not set TERM to cygwin but to something more appropriate such as 'pccons'. Heck, anything in /usr/share/terminfo/p/ with a name starting on 'pc' would be more appropriate. pccons gives an error: tin: Terminal must have clear to end-of-screen (cd) tin: Screen initialization failed The README.WIN file which comes with tin instructs to use pcansi, which gives the same effect (light-grey on dark-grey) as cygwin. (I can not remember where I got the cygwin setting from.). [deleted] [1] BTW, there is already an official binary of tin you can download from the mirrors with setup.exe. Unless you are using the latest unstable, of course... Yes, I am aware of that, but thanks anyway. I won't bother you with my reasons for wanting to build tin myself. So anyone any other suggestions? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
At 04:33 a.m. 28/04/2004, Frank Slootweg wrote: So I think the standout/'inverse video' colors are set somewhere else, but I do not know where. That is the problem, and is confirmed by the fact that tput smso shows the same behaviour. (BTW, the normal, non-inverse-video, colors for a Command Prompt 'DOS' window are set in the Properties of that window, but there there are no settings for inverse-video.) Gotcha. I missed that part. OK. In my experience, you can set the fg/bg colors the way you want by modifying the system settings in the shortcut (right-click on window bar and modify properties there), or by using *bold colors* in your definitions. For some reason, in the win32 console \e[00;30m is grey and \e[01;30m is white. -- Alejandro López-Valencia http://dradul.tripod.com/ The limits of my language are the limits of my world. (L. Wittgenstein) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
Alejandro López-Valencia wrote: At 04:33 a.m. 28/04/2004, Frank Slootweg wrote: So I think the standout/'inverse video' colors are set somewhere else, but I do not know where. That is the problem, and is confirmed by the fact that tput smso shows the same behaviour. (BTW, the normal, non-inverse-video, colors for a Command Prompt 'DOS' window are set in the Properties of that window, but there there are no settings for inverse-video.) Gotcha. I missed that part. OK. In my experience, you can set the fg/bg colors the way you want by modifying the system settings in the shortcut (right-click on window bar and modify properties there), or by using *bold colors* in your definitions. For some reason, in the win32 console \e[00;30m is grey and \e[01;30m is white. Getting closer! As I mentioned, Properties has no settings for inverse-video and bold colors (I assume you mean the colors of bold fonts) did not help, but ... : (In combination with tput smso,) I get black for \e[00;30m and white for \e[01;30m (remember that my 'DOS' window is black-on-white, so opposite from a normal Cygwin bash window). So with these kinds of escape sequences I *do* seem to have some kind of control over the colors, I just do not have the *right* colors yet. Is there a place where all these (I assume ANSI) escape sequences for colors are listed? When I have that information, I can probably untic an existing terminfo entry, modify it and tic it back to another name and use that. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: How to set the colors of terminfo's standout mode?
From: Christopher Faylor Sent: Wednesday, April 28, 2004 12:48 AM On Tue, Apr 27, 2004 at 08:29:44PM +0200, Hannu E K Nevalainen wrote: From: cygwin-owner-SPLAT-cygwin-BOP-com [mailto:cygwin-owner-ETC-]On Behalf There is no reason to inform people that cygwin-owner was somehow involved in this email transaction. Please do not include email addresses in the text of your messages. I've pondered over this message several times, but I still feel like posting it /NOT REALLY BEEING SERIOUS:/ Blergh... PTC! I'm editing ALL my postings by hand, the above is nothing more than a lapse by me; I'm just human - please, can I go on beeing that? Oh, BTW; thanks for pointing it out! ;-7 /A BIT MORE SERIOUS/ You hit a weak spot; Feel free to supply a patch for this Outlook problem, I'll greatfully accept almost _anything_ that *betters* the situation. I believe the PTC thing is in line with frequent recommendations on this list. (The tone here beeing in line with WJM!) Though Outlook isn't free in any way, the change should be doable in any installation; given the right knowledge. It has been up many times and needs no further discussion - unless you have new information to supply (I have no hope regarding this though). /HINTS/ I have so far concluded that the problem is with the MESSAGE form of Outlook. I have no hope that it will get fixed; the OfficeXP version of Outlook has a slightly better format of the standard (hard to change!? no one cares?) header. Sigh, EOD IMO. :-p FYI: I'll have to put up with this MS- all working day. Please don't lay more on the burden, I'm feeling really grumpy. /Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E ** on a mailing list; please keep replies on that particular list ** -- printf(LocalTime: UTC+%02d\n,(DST)? 2:1); -- --END OF MESSAGE-- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: How to set the colors of terminfo's standout mode?
From: Frank Slootweg Sent: Wednesday, April 28, 2004 11:20 AM Hannu E K Nevalainen wrote: From: [deleted] On Behalf Of Frank Slootweg FWIW: $ cat ~/.Xdefaults # XTerm == rxvt as rxvt simulates xterm rxvt.background:black rxvt.foreground:grey rxvt.visualBell:true ... I know these things get explained in some man/info-page that I currently am too lazy to look up. (man/info rxvt?) Note that I am *not* using an X terminal (emulator), but a Command Prompt 'DOS' window. AFAIK, the X settings do not apply in that case. Anyway, I do not even have a .Xdefaults file (anywhere) and my background is white, not black. I suppose they don't apply to the DOS console. BUT: Are you aware that the rxvt terminal runs just fine without starting the X stuff? I do consider this be the best way to run cygwin-bash. If you do this, then the .Xdefaults file -does- apply. Later you write: Is there a place where all these (I assume ANSI) escape sequences for colors are listed? When I have that information, I can probably untic an existing terminfo entry, modify it and tic it back to another name and use that. That would probably be some kind of ANSI or possibly VT100(a bit unsure there) - most of these escape sequences are the same in the old AmigaDOS CON: and RAW: devices -- Ehrm, if that helps :-D . /Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E ** on a mailing list; please keep replies on that particular list ** -- printf(LocalTime: UTC+%02d\n,(DST)? 2:1); -- --END OF MESSAGE-- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
At 07:56 a.m. 28/04/2004, Frank Slootweg wrote: Is there a place where all these (I assume ANSI) escape sequences for colors are listed? When I have that information, I can probably untic an existing terminfo entry, modify it and tic it back to another name and use that. The one I use came with the documentation of an ftp/sftp client I use, yafc. Tis information is very hard to come by if one is in a bind, so I'll include it here. Yafc's info file says: ---begin quote Colors == Escape codes can be used to display colors in the transfer strings and the prompts. All escape codes must be surrounded by %{ and %} pairs for readline to correctly wrap long lines. The built-in command `ls' has an option `--color'. You must set the environment variable LS_COLORS (or LS_COLOURS) for this to work. See manpage for GNU ls(1) and *note dircolors: (fileutils)dircolors invocation, for information how to do this. If you don't set LS_COLO[U]RS, you can still use the `--color' option, since Yafc provides some default settings. ANSI attribute codes An ANSI escape sequence has the format `ESC[X;Ym', where `ESC' is the escape character (octal 033). `X' and, optionally, `Y', is one of the following escape codes: * attribute codes - 00 = none - 01 = bold - 04 = underscore - 05 = blink - 07 = reverse - 08 = concealed * text color codes - 30 = black - 31 = red - 32 = green - 33 = yellow - 34 = blue - 35 = magenta - 36 = cyan - 37 = white * background color codes - 40 = black - 41 = red - 42 = green - 43 = yellow - 44 = blue - 45 = magenta - 46 = cyan - 47 = white For example, the sequence `ESC[1;32myafc rulesESC[0m' will be the string `yafc rules' in bright green, after which the attribute is restored to normal. ---end quote -- Alejandro López-Valencia http://dradul.tripod.com/ The limits of my language are the limits of my world. (L. Wittgenstein) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
Please? On April 20, I wrote: How can I set the colors of terminfo's standout (smso, so) mode? I have a terminfo application (tin, the newsreader) which, as far as I can tell, uses standout mode to highlight things. I first used this on the old Cygwin B20 release and that gave white text on a black background (normal text is black on white), i.e. 'inverse-video' and a good contrast, i.e. easy to read. I now rebuilt (configure,/make, compile, link, etc.) the application on Cygwin 1.5.9. That new version displays standout mode as light-grey text on a dark-grey background, i.e. little contrast and very hard to read. Basically I want the old behaviour (white-on-black) on Cygwin 1.5.9, but have no idea how/where that can be set. Some more information: The application is started from a Command Prompt 'DOS' window, i.e. not from a (bash) shell. However when I do a tput smso in that window and then echo text, I see the same behaviour (light-grey on dark-grey), so I think it is a terminfo/ terminal issue, not a shell issue. The TERM variable is set to cygwin. Thanks in advance for any and all responses. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: How to set the colors of terminfo's standout mode?
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Frank Slootweg FWIW: $ cat ~/.Xdefaults # XTerm == rxvt as rxvt simulates xterm rxvt.background:black rxvt.foreground:grey rxvt.visualBell:true ... I know these things get explained in some man/info-page that I currently am too lazy to look up. (man/info rxvt?) /Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E ** on a mailing list; please keep replies on that particular list ** -- printf(LocalTime: UTC+%02d\n,(DST)? 2:1); -- --END OF MESSAGE-- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
At 03:05 a.m. 27/04/2004, Frank Slootweg wrote: Please? On April 20, I wrote: How can I set the colors of terminfo's standout (smso, so) mode? I have a terminfo application (tin, the newsreader) which, as far as [snip] I now rebuilt (configure,/make, compile, link, etc.) the application on Cygwin 1.5.9. That new version displays standout mode as light-grey text on a dark-grey background, i.e. little contrast and very hard to read. Basically I want the old behaviour (white-on-black) on Cygwin 1.5.9, but have no idea how/where that can be set. Have you read the man page? Particularly the section titled: GLOBAL OPTIONS MENU AND TINRC CONFIGURABLE VARIABLES where it documents how you can set up screen colors by editing tinrc? My knowledge on this topic stops here (I use slrn with jwk patches, best offline news reading I've done ever). I just happen to have tin's man page in /var/spool/cache/man/cat1 yet [1]). Some more information: The application is started from a Command Prompt 'DOS' window, i.e. not from a (bash) shell. However when I do [snip] If you are running in a plain Windows console with command.com or cmd.exe as shell, you should not set TERM to cygwin but to something more appropriate such as 'pccons'. Heck, anything in /usr/share/terminfo/p/ with a name starting on 'pc' would be more appropriate. I can understand that you have some resistance to using the supplied start up icon because it is wasteful. As it runs a batch file that in turn runs the shell, namely bash, you are in practice running *two* applications instead of one. That is, for each bash or preferred shell session you start, you are running a copy of the default windows command processor (cmd.exe in my case). For example in my system, a default bash session takes 4552Kb for bash.exe plus 1152Kb for the attached cmd.exe. I solved this issue by setting a system wide value of CYGWIN=tty and then using direct shortcuts, as in right-click on desktop, create shortcut and giving c:\cygwin\bin\zsh.exe -i -l as the running comand and c:\cygwin\bin as the default execution directory, so that zsh finds cygwin1.dll. I don't have cygwin directories exposed to the win32 system; in general you don't need them in your system path unless you have very particular needs. [1] BTW, there is already an official binary of tin you can download from the mirrors with setup.exe. Unless you are using the latest unstable, of course... -- Alejandro López-Valencia http://dradul.tripod.com/ The limits of my language are the limits of my world. (L. Wittgenstein) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to set the colors of terminfo's standout mode?
On Tue, Apr 27, 2004 at 08:29:44PM +0200, Hannu E K Nevalainen wrote: From: cygwin-owner-SPLAT-cygwin-BOP-com [mailto:cygwin-owner-ETC-]On Behalf There is no reason to inform people that cygwin-owner was somehow involved in this email transaction. Please do not include email addresses in the text of your messages. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: How to set the colors of terminfo's standout mode?
B20 was great back then wasn't it! ...Karl From: Frank Slootweg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: How to set the colors of terminfo's standout mode? Date: Tue, 20 Apr 2004 10:24:11 +0200 How can I set the colors of terminfo's standout (smso, so) mode? I have a terminfo application (tin, the newsreader) which, as far as I can tell, uses standout mode to highlight things. I first used this on the old Cygwin B20 release and that gave white text on a black background (normal text is black on white), i.e. 'inverse-video' and a good contrast, i.e. easy to read. I now rebuilt (configure,/make, compile, link, etc.) the application on Cygwin 1.5.9. That new version displays standout mode as light-grey text on a dark-grey background, i.e. little contrast and very hard to read. Basically I want the old behaviour (white-on-black) on Cygwin 1.5.9, but have no idea how/where that can be set. Some more information: The application is started from a Command Prompt 'DOS' window, i.e. not from a (bash) shell. However when I do a tput smso in that window and then echo text, I see the same behaviour (light-grey on dark-grey), so I think it is a terminfo/ terminal issue, not a shell issue. The TERM variable is set to cygwin. Thanks in advance for any and all responses. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ _ From must-see cities to the best beaches, plan a getaway with the Spring Travel Guide! http://special.msn.com/local/springtravel.armx -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/