[GRASS5] Re: General and gis.m module running (stdout,stderr,exit status) issues

Glynn Clements glynn at gclements.plus.com
Tue Apr 4 00:17:29 EDT 2006


Michael Barton wrote:

> One thing I just thought of that might be a good idea in general at this
> juncture. For the few modules that require an xterm for display, is there
> some way to build in a button (referenced in the C code lines that format
> the module gui) that can be used to start an xterm? Or is running anything
> like this through parser.c problematic at the moment?

The obvious solution is for parser.c to provide a G_terminal_required()
function and for modules which need a terminal to call it before calling
G_parser(). This information can then be made available to gui.tcl.

The other side of the coin is for modules which don't absolutely /need/
a terminal to stop assuming that there is one. I.e. no gratuitous use of
the terminal by modules which are essentially useable without one.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list