Bug#1314: ncurses fails in silly way on TERM=dumb
This may still be a documentation bug, but here's how to perform the test:
To test if a terminal has cursor addressing:
char * s;
if ( (s = tigetstr("cup")) != 0 && *s != 0 )
/* Terminal has cursor addressing */
This is usually sufficient to weed out the dumb terminals and hardcopy
devices. If your program depends on standout, you can add a similar test
for that capability.
Thanks
Bruce
--
-- Attention Radio Amateurs: For information on "Linux for Hams",
-- read the WWW page http://www.hams.com/LinuxForHams,
-- or e-mail the word "help" to info@hams.com
Reply to: