Dear fellow Linuxers, (see attachment)
I had recently been fooling around with the colouring the bash(1) $PS1 variable for making $PS1 _really_ colurful prompt. I found myself reading the console_codes(4) man page (and the inevitable bash(1) man page, too) from time to time. This was a pain. As for a newbie, s/he can't quickly grasp the concept of DEC escape codes, and differentiate VT220 codes from ECMA control codes. So to help the newbies, I decided to code up a simple(?!) shell script from which the desired colour codes could be looked up as X,Y coordinates. This is no great hack. And I concentrated only on the `Normal' and `Bold' category of codes, since `Underline' and `Blink' attributes couldn't always be handled by all VCs (of course, some xterm(1x) could interpret them). In the script, the Y axis denotes the foreground colour ranges, and the X axis denotes the background colour ranges. Well, the standard disclaimer applies. Any suggestions and corrections are welcome (all flames to /dev/null). I'm releasing this script as GPL. No worries, Mahesh Aravind -- PS: If you want any help, do an "nl -ba colors.sh". ;-) __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- A non-text attachment was scrubbed... Name: colors.sh.gz Type: application/x-gzip Size: 893 bytes Desc: 2251497165-colors.sh.gz Url : http://ilug-cochin.org/pipermail/mailinglist_ilug-cochin.org/attachments/20060513/ae8920b3/colors.sh.bin
