[GRASS5] [5.7] d.redraw

When running d.redraw from the command line in GRASS 5.7:

d.redraw

wait .. wait..

tcl menu pops up

[Run]

Error: can't read "opttype(1)": no such variable

[Details]

can't read "opttype(1)": no such variable
can't read "opttype(1)": no such variable
    while executing
"if { $opttype($i) == "multi" } {
            set domulti 0
            for {set j 1} {$j <= $nmulti($i) } {incr j} {
                if { $optval($i,$..."
    (procedure "mkcmd" line 5)
    invoked from within
"mkcmd "
    invoked from within
".run invoke"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list $w invoke]"
    (procedure "tk::ButtonUp" line 22)
    invoked from within
"tk::ButtonUp .run"
    (command bound to event)

???
Grabbing the window edge to resize gets the job done..
Why does d.redraw even need a GUI?

Another nit-pick:
Clicking on [Help] should open a new browser/tab, not open the help page
over the existing page..

thanks,
Hamish

Another nit-pick:
Clicking on [Help] should open a new browser/tab, not open the help page
over the existing page..

answering myself:

mozilla -remote "openURL ($URL, new-tab)"

[replace new-tab with new-window if you want]

http://www.mozilla.org/unix/remote.html

Not exactly as portable as "$GRASS_WEB_BROWSER $URL" ..

H

On Tue, Feb 03, 2004 at 04:11:46PM +1300, Hamish wrote:

When running d.redraw from the command line in GRASS 5.7:

> d.redraw
wait .. wait..

tcl menu pops up

[...]

???
Grabbing the window edge to resize gets the job done..
Why does d.redraw even need a GUI?

It doesn't. I have disabled g.parser support (i.e. GUI) now.

Another nit-pick:
Clicking on [Help] should open a new browser/tab, not open the help page
over the existing page..

At least with
echo $GRASS_HTML_BROWSER
konqueror

this works fine (always new window). It may depend on the browser.

Markus

> Why does d.redraw even need a GUI?

It doesn't. I have disabled g.parser support (i.e. GUI) now.

thanks..

> Another nit-pick:
> Clicking on [Help] should open a new browser/tab, not open the help
> page over the existing page..
> mozilla -remote "openURL ($URL, new-tab)"

..

At least with
echo $GRASS_HTML_BROWSER
konqueror

this works fine (always new window). It may depend on the browser.

looking further,
GRASS 5.0/5.3's gui.tcl uses something like,
   "$NETSCAPE -remote openURL\($url,new-window,$html(raise)\)"

GRASS 5.7's lib/gis/parser.c uses something like,
   "$GRASS_HTML_BROWSER $URL"

So for once it wasn't just my imagination.

Perhaps the $GRASS_HTML_BROWSER code should be backported from 5.7's
lib/init/init.sh to 5.3, to make the HTML help in 5.3 work for
non-mozilla derivatives. This would also move us closer to being able to
use MacOSX/Aqua's native TclTk ..

Hamish