[GRASS5] GRASS_MESSAGE_FORMAT?

Radim Blazek radim.blazek at gmail.com
Fri Dec 9 02:52:54 EST 2005


On 12/8/05, Hamish <hamish_nospam at yahoo.com> wrote:
> > for some applications it would be useful to have GRASS
> > less chatty. Are there objections to implement
> >
> > GRASS_MESSAGE_FORMAT=silent
> >
> > a.k.a. include/gis.h (around line 123):
> >
> > #define G_INFO_FORMAT_SILENT   2  /* GRASS_MESSAGE_FORMAT=silent */
> >
> > which would be applied to lib/gis/percent.c etc?
>
> sounds nice.
>
> what about "GRASS_VERBOSITY=0,1,2" set from g.gisenv? (default 1)

Yes, it is better to add new varable. Verbosity and format are 2
different things
which should not be mixed together.

> Could be added as an argument to G_message() as well ..?

Yes, but  G_message() should not be changed if exist, we have to add
G_message2()

Radim




More information about the grass-dev mailing list