[GRASS5] Messages and GUI
Radim Blazek
blazek at itc.it
Fri Nov 12 13:35:36 EST 2004
For more processes, it would be necessary to use PID + ID, I think.
Radim
Huidae Cho wrote:
> What about having a global message index so that we can number all messages:
>
> GRASS_INFO_ERROR1
> module message 1
> GRASS_INFO_ERROR2
> driver message 1
> module message 2
> module message 3
> GRASS_INFO_WARNING3
> module message 2
> GRASS_INFO_END3
> ...
> GRASS_INFO_END1
>
> But, I think a prefix will work better and easier.
>
> Huidae Cho
>
>
> On Fri, 12 Nov 2004 19:22:31 +0100, Radim Blazek <blazek at itc.it> wrote:
>
>>Glynn Clements wrote:
>>
>>
>>
>>>Radim Blazek wrote:
>>>
>>>
>>>
>>>>I have added G_messages and modified a bit G_percent, G_warning
>>>>and G_fatal_error. If GRASS_MESSAGE_FORMAT enviroment (not GRASS) variable
>>>>is set to 'gui', those functions print messages in format
>>>>suitable for parsing by GUI. gui.tcl was also modified and
>>>>displays progress bar if G_percent is used and adds icons to output box.
>>>>http://mpa.itc.it/radim/g51/messages1.png
>>>>
>>>>Subject for discussion.
>>>>
>>>>Question: G_warning/G_messages/G_fatal_error can print more lines,
>>>>how to tell to GUI that it is one message?
>>>
>>>
>>>Print begin/end markers rather than a prefix in front of each line,
>>>e.g.
>>>
>>> GRASS_INFO_WARNING
>>> message
>>> goes
>>> here
>>> GRASS_INFO_END
>>
>>Cannot it happen that messages printed by a module and
>>a process created by the module (e.g. dbmi driver)
>>will be mixed together? For example:
>>
>>GRASS_INFO_ERROR
>>module message 1
>>GRASS_INFO_ERROR
>>driver message 1
>>module message 2
>>module message 3
>>GRASS_INFO_END
>>driver message 2
>>GRASS_INFO_ERROR
>>
>>
>>Radim
>>
>>
>>
>>
>>_______________________________________________
>>grass5 mailing list
>>grass5 at grass.itc.it
>>http://grass.itc.it/mailman/listinfo/grass5
>>
More information about the grass-dev
mailing list