[GRASS5] New help button - please text review
Hamish
hamish_nospam at yahoo.com
Wed Feb 2 00:08:33 EST 2005
> On Tue, Feb 01, 2005 at 11:45:19AM -0500, John Gillette wrote:
> > xmessage -center -file - any_file.txt
> > at a terminal reproduces your error message.
> > Do you need the final dash (-) in the GRASS_PAGER variable?
> > In other words:
> > setenv GRASS_PAGER "xmessage -center -file"
>
>
> Magic! This works
>
> if $TERM is csh like
> setenv GRASS_PAGER "xmessage -center -file"
>
> if $TERM is bash like
> export GRASS_PAGER="xmessage -center -file"
>
> Thanks, John!
>
> This should be documented somewhere in the online
> help system.
... ah yes. The "-file -" indicates input is to be piped from stdin.
xmessage works, but is very inconsistent with the rest of the GRASS GUI.
One problem I saw with xmessage is that it didn't give horiz. scroll
bars and when you did g.list for example, the right hand column of maps
could be silently hidden unless you thought to resize the window.
I like the g.message tcltk solution better. The attached prototype needs
a box with horiz and vert scroll bars (ala d.what.vect) for the longer
lists and more robust piping from stdin..
or just send to the existing lib/form/html_library_grass.tcl ?
Hamish
-------------- next part --------------
A non-text attachment was scrubbed...
Name: g.message
Type: application/octet-stream
Size: 643 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20050202/78687020/g.obj
More information about the grass-dev
mailing list