[GRASS5] v.digit and xterm size

Markus Neteler neteler at itc.it
Wed Jul 31 12:24:29 EDT 2002


Hi,

to fix a (small) problem for v.digit which gets stalled
when the terminal is smaller that 80x24, I want to add
a related test. Something like 

 TERM_COLUMNS = getenv("COLUMNS");
 TERM_ROWS    = getenv("ROWS");

Of course that's not working, $COLUMNS seems not to be
generally present.

Is there a way to got COLUMNS and ROWS (sorry for the naive question)?
Maybe 'stty' (is that portable)?

Thanks for a hint,

 Markus



More information about the grass-dev mailing list