GRASS GIS 8 Programmer's Manual
8.5.0dev(2025)-060b32d572
Main Page
Related Pages
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
x
y
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
r
s
t
u
v
w
y
Enumerations
a
c
d
e
h
i
j
l
m
n
o
p
r
s
t
v
y
Enumerator
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
clicker.c
Go to the documentation of this file.
1
/*-
2
* G_clicker()
3
*
4
* Print a clock hand (one of '|', '/', '-', '\') to stderr.
5
* Used in place of G_percent for unknown number of iterations
6
*
7
*/
8
#include <
stdio.h
>
9
#include <
grass/gis.h
>
10
11
static
struct
state
{
12
int
prev;
13
}
state
;
14
15
static
struct
state
*
st
= &
state
;
16
17
void
G_clicker
(
void
)
18
{
19
static
const
char
clicks[] =
"|/-\\"
;
20
int
format =
G_info_format
();
21
22
if
(format ==
G_INFO_FORMAT_SILENT
||
G_verbose
() < 1)
23
return
;
24
25
st
->prev++;
26
st
->prev %= 4;
27
28
fprintf(stderr,
"%1c\b"
, clicks[
st
->prev]);
29
fflush(stderr);
30
}
G_clicker
void G_clicker(void)
Definition:
clicker.c:17
G_verbose
int G_verbose(void)
Get current verbosity level.
Definition:
verbose.c:60
G_info_format
int G_info_format(void)
Get current message format.
Definition:
gis/error.c:537
gis.h
G_INFO_FORMAT_SILENT
#define G_INFO_FORMAT_SILENT
Definition:
gis.h:391
state
struct state state
Definition:
parser.c:103
st
struct state * st
Definition:
parser.c:104
stdio.h
lib
gis
clicker.c
Generated on Sat Mar 15 2025 07:34:57 for GRASS GIS 8 Programmer's Manual by
1.9.1