[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:41:50 EDT 2004


On Thu, September 23, 2004 0:10, Michael Barton said:
> Moritz,
>
> Look in $GISBASE/etc/d.m/d.m.tcl for the following lines
>
> # zoom
> proc Dm::zoom { } {
>
>     set cmd "d.zoom"
>     term $cmd
>
> }
>
> # pan
> proc Dm::pan { } {
>
>     set cmd "d.zoom -p"
>     term $cmd
>
> }
>
>
> ***** Try writing them as ...
>
> # zoom
> proc Dm::zoom { } {
>
>     term d.zoom
>
> }
>
> # pan
> proc Dm::pan { } {
>
>     term d.zoom -p
>
> }
>
> See if this fixes the problem. If so, I can easily make a generic change
> to
> all the buttons as they all use this format.

No, this doesn't make a difference for me...

When I try to launch 'xterm -e d.zoom' from the GRASS command line, I have
the same problem. When I launch xterm from the GRASS command line I get an
xterm, but when I enter d.zoom in there, I get:

d.zoom: error while loading shared libraries: libgrass_display.so: cannot
open shared object file: No such file or directory

It seems that the new xterm doesn't know about GRASS. Might this be the
problem with the term procedure in tcl as well ?

Moritz




More information about the grass-dev mailing list