[GRASS5] 5.7 - GIS manager - zoom and pan - change term to execute in d.m.tcl

Glynn Clements glynn.clements at virgin.net
Wed Sep 22 17:46:38 EDT 2004


Moritz Lennert wrote:

> > In order to make zoom and pan work for me from the GIS manager, I had to
> > change lines 419 and 427 of d.m.tcl to use the "execute" function instead
> > of the "term" function. With the latter, I just get an additional xterm
> > that flashes up very briefly and then closes without anything happening.
> >
> > This is with yesterday's CVS version of 5.7 and 5.3 on Debian
> > testing/unstable.
> 
> Replying to myself: the same is true for the query functions, d.what.vect
> and d.what.rast for which I had to change the call from
> "term" to "run" respectively in vector.tcl and raster.tcl.

Note that the term and run procedures expect any command-line
arguments to be passed as additional arguments, e.g.:

	term d.zoom -p

Using:

	term "d.zoom -p"

won't work.

Similarly, the execute procedure requires a command with no arguments,
as it always passes the --ui switch.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-dev mailing list