[GRASS5] Looking for ncurses code

Eric G. Miller egm2 at jps.net
Fri Feb 23 22:45:05 EST 2001


On Fri, Feb 23, 2001 at 09:44:33AM -0800, Rich Shepard wrote:
> On Fri, 23 Feb 2001, Markus Neteler wrote:
> 
> > You can see CLI at work in src/raster/r.agnps50/ if you need an
> > example.
> 
>   Again, thanks, Markus.
> 
>   I've grep'd the files in src/libes/vask/ and haven't found the names of
> the variables used to store the input (GISDBASE. location and mapset). Is
> there any guide in the programmer's manual to the organization of the start
> up code and the user interface? I don't recall seeing that the last time I
> looked.

The vask library is just a simplified wrapper for curses.  The GISDBASE,
LOCATION and MAPSET are written to the ~/.grassrc5 file.  If you're
interested in the session start-up code, have a look in
src/general/init/, which among other things sets the environment
variables above.  Also good to poke around src/libes/gis/ to see how
many things are handled regarding database management, I/O, etc... Don't
rely on the Programming manual.  It's helpful, but doesn't document a
lot of stuff (some things just aren't documented).

>   I'll look at the tcl/tk code, too, and see if I can find these variable
> names there.

It gets them from the environment...

-- 
Eric G. Miller <egm2 at jps.net>

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list