On Fri, 26 Oct 2007, Gautam Iyer wrote: >> is there a way to programmatically test (without eyes on a screen) if a >> terminal is compiled with 16 or 256 color support? > > tput colors ================
my next question seems really stupid; what should i expect to see output from that command? tput tells me 105, but i've seen it do 256. in xterm(tm) i see 80, but it only supports 16 colors. fyi, i'm on freebsd which uses termcap, not terminfo. i ran 'tic -C' and added your terminfo settings to my termcap, but that didn't seem to change anything. i also used the rxvt.termcap that came with the package, and still the same. i even tried changing the colors and pairs to reflect 256 and 32717, and still the same. -- ...atom ________________________ http://atom.smasher.org/ 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808 ------------------------------------------------- "A farmer's duty, is protecting the earth, maintaining it's fertility, and maintaining the fertility of seed. That is part of being a farmer. A farmer is not a low-paid tractor driver, that's a modern definition of what a farmer is. The real definition of a farmer is a person who relates to the land and relates to the seed and keeps it for future generations, keeps renewing it, fertility." -- Dr. Vandana Shiva ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Materm-usage mailing list Materm-usage@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/materm-usage Mrxvt home page: http://materm.sourceforge.net