[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1314: ncurses fails in silly way on TERM=dumb



Bruce Perens writes ("Re: 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.  I'll include this in 0.93.73.

Ian.


Reply to: