[GRASS5] New help button - please text review

Markus Neteler neteler at itc.it
Wed Feb 9 10:30:47 EST 2005


On Thu, Feb 03, 2005 at 01:04:32PM +1300, Hamish wrote:
> > > > > Do you need the final dash (-) in the GRASS_PAGER variable?
> > > > > In other words:
> > > > > setenv GRASS_PAGER "xmessage -center -file"
> ..
> > > > Magic! This works
> ..
> > > ... 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.
> > 
> > Meanwhile I disovered that
> > 
> > - Hamish's version works for g.list
> > - John's version works for g.setproj
> > 
> > GRASS_PAGER doesn't behave the same...
> 
> 
> One takes input piped from stdin, the other from a filename. (?)
> 
> xmessage can't figure this out automatically and needs to be told which
> one it is getting.
> 
> I don't know how to get a shell script to do both. "read" strips
> whitespace from between words, how else to read from stdin?
> 
> Again I'd push for a g.message C module which takes input from stdin or
> a file and makes a Tcl display window ala a module started with no
> options.

Good idea. Let's do this in CVS once 6.0.0 is out or the release
branch created (soonish).

Markus 




More information about the grass-dev mailing list