[GRASS5] 5.7 - GIS manager - zoom and pan - change term to
execute in d.m.tcl
Moritz Lennert
mlennert at club.worldonline.be
Thu Sep 23 04:30:46 EDT 2004
On Wed, September 22, 2004 23:46, Glynn Clements said:
>
> 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.
It does accept the -p switch though...
Moritz
More information about the grass-dev
mailing list