Opened 9 years ago

Closed 6 years ago

Last modified 6 years ago

#2751 closed defect (fixed)

G_progress() does not support GRASS_MESSAGE_FORMAT=gui

Reported by: rblazek Owned by: grass-dev@…
Priority: normal Milestone: 7.8.0
Component: Default Version: unspecified
Keywords: Cc:
CPU: Unspecified Platform: Unspecified

Description

G_progress() does not support GRASS_MESSAGE_FORMAT=gui. If the format is set to gui, it should print something like

  fprintf(stderr, "GRASS_INFO_PROGRESS: %d\n", n);

so that it can be parsed in GUI.

Change History (5)

comment:1 by annakrat, 9 years ago

Sounds reasonable, can you please attach a patch?

comment:2 by martinl, 7 years ago

Milestone: 7.2.4

comment:3 by martinl, 6 years ago

Milestone: 7.2.47.8.0

comment:4 by martinl, 6 years ago

Resolution: fixed
Status: newclosed

In 74449:

G_progress() does not support GRASS_MESSAGE_FORMAT=gui, fixes #2751

comment:5 by martinl, 6 years ago

GRASS_MESSAGE_FORMAT=gui v.random o=n n=100000 --o
...
RASS_INFO_MESSAGE(11109,4): Registering primitives...
GRASS_INFO_END(11109,4)
GRASS_INFO_PROGRESS: 10000
GRASS_INFO_PROGRESS: 20000
GRASS_INFO_PROGRESS: 30000
GRASS_INFO_PROGRESS: 40000
GRASS_INFO_PROGRESS: 50000
GRASS_INFO_PROGRESS: 60000
GRASS_INFO_PROGRESS: 70000
GRASS_INFO_PROGRESS: 80000
GRASS_INFO_PROGRESS: 90000
GRASS_INFO_PROGRESS: 100000
Note: See TracTickets for help on using tickets.