Opened 4 years ago

Closed 5 months ago

Last modified 5 months 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 Changed 4 years ago by annakrat

Sounds reasonable, can you please attach a patch?

comment:2 Changed 18 months ago by martinl

Milestone: 7.2.4

comment:3 Changed 5 months ago by martinl

Milestone: 7.2.47.8.0

comment:4 Changed 5 months ago by martinl

Resolution: fixed
Status: newclosed

In 74449:

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

comment:5 Changed 5 months ago by martinl

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.