[GRASS5] Re: [GRASSLIST:8545] Re: d.m - commands output pollute the Grass terminal

Glynn Clements glynn at gclements.plus.com
Mon Oct 10 00:37:37 EDT 2005


Moritz Lennert wrote:

> >>Following up on a suggestion by Maciek and information by Glynn, I've played
> >>around with outputting GIS Manager commands to a separate terminal window a
> >>bit.
> >>
> >>Currently, all GIS Manager commands send their output to the GRASS terminal
> >>so that the relevant display commands are echoed there (using TclTk "puts"
> >>for each command). 
> > 
> > 
> > In the version I have here, only Dm::execute does that, which is only
> > used by print.tcl.
> > 
> > Dm::execute takes the command as a string, which won't work for
> > non-trivial commands (e.g. those where arguments contain spaces or
> > shell metacharacters).
> > 
> 
> I can confirm that. Simple copy-and-paste won't work in those cases.
> 
> As a side remark, this might be an argument for avoiding arguments
> with spaces whenever possible. For example, in d.vect.thematique, it
> might be better to find other names for arguments such as 'graduated
> colors', 'custom gradient', 'standard deviation', etc.

No need. Tcl has perfectly good support for lists; there's no reason
to treat a command as a string.

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




More information about the grass-dev mailing list