[GRASS5] GRASS_MESSAGE_FORMAT?

Hi,

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?

Markus

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)

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

Hamish

I think that this is a good idea. People should know that if this variable
is set to silent, there will be no progress bars in the GUI dialogs. It may
solve some other problems however.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Markus Neteler <neteler@itc.it>
Date: Thu, 8 Dec 2005 00:41:43 +0100
To: grass developers list <grass5@grass.itc.it>
Subject: [GRASS5] GRASS_MESSAGE_FORMAT?

Hi,

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?

Markus

> for some applications it would be useful to have GRASS less chatty.

see also lib/gis/error.c 's G_suppress_warnings()

Hamish

On 12/8/05, Hamish <hamish_nospam@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

Hamish wrote:

what about "GRASS_VERBOSITY=0,1,2" set from g.gisenv? (default 1)

That should probably be an environment variable, so it can have
different values for different commands.

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