this bug's URL: http://intevation.de/rt/webrt?serial_num=1107
Request number 1107 was commented on by 'bernhard' (Bernhard Reiter).
Responding to this message will send mail to the requestor.
Request Tracker
rt@intevation.de
--------------------------------------------------------------
Cc: grass5@grass.itc.it
Maybe we should add a check for the terminal size for v.digit.
At least a warning in the man page would be appropriate.
-------------------------------------------- Managed by Request Tracker
On Fri, Aug 23, 2002 at 03:23:33PM +0200, Bernhard Reiter via RT wrote:
this bug's URL: http://intevation.de/rt/webrt?serial_num=1107
Request number 1107 was commented on by 'bernhard' (Bernhard Reiter).
Responding to this message will send mail to the requestor.
Request Tracker
rt@intevation.de
--------------------------------------------------------------
Cc: grass5@grass.itc.it
Maybe we should add a check for the terminal size for v.digit.
This I tried, but I didn't understand how to do it (curses
didn't give me the numbers as suggested by Glynn). An expert
is needed here 
Markus
At least a warning in the man page would be appropriate.
-------------------------------------------- Managed by Request Tracker
_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5
--
Markus Neteler
ITC-irst, Istituto per la Ricerca Scientifica e Tecnologica
Project on Predictive Models for the Environment
Via Sommarive, 18 - 38050 Povo (Trento), Italy
tel +39 0461 314 -520 (fax -591) http://mpa.itc.it
Markus Neteler wrote:
> Maybe we should add a check for the terminal size for v.digit.
This I tried, but I didn't understand how to do it (curses
didn't give me the numbers as suggested by Glynn). An expert
is needed here 
It works fine for me. If I add the line:
fprintf(stderr, "LINES = %d, COLS = %d\n", LINES, COLS);
to Init_curses() in dig_curses.c, it prints:
LINES = 24, COLS = 80
Note that v.digit doesn't initialise curses until after you have
selected a digitiser, selected a map, and filled in the information
screen for the map.
The variables are set by curses and, as such, aren't valid until
curses has been initialised (by initscr(), which is called from
V_init()).
--
Glynn Clements <glynn.clements@virgin.net>
On Sat, Aug 24, 2002 at 01:00:11AM +0100, Glynn Clements wrote:
Markus Neteler wrote:
> > Maybe we should add a check for the terminal size for v.digit.
>
> This I tried, but I didn't understand how to do it (curses
> didn't give me the numbers as suggested by Glynn). An expert
> is needed here 
It works fine for me. If I add the line:
fprintf(stderr, "LINES = %d, COLS = %d\n", LINES, COLS);
to Init_curses() in dig_curses.c, it prints:
LINES = 24, COLS = 80
Note that v.digit doesn't initialise curses until after you have
selected a digitiser, selected a map, and filled in the information
screen for the map.
Ah! This is the point. I added the test too early.
The variables are set by curses and, as such, aren't valid until
curses has been initialised (by initscr(), which is called from
V_init()).
However, it will be also strange that v.digit stops working in the middle.
To have the test at the very beginning might be more conventient.
But of course: later is better than nothing.
Markus