Notcurses
3.0.13
a blingful library for TUIs and character graphics
Loading...
Searching...
No Matches
gpm.h
Go to the documentation of this file.
1
#ifndef NOTCURSES_GPM
2
#define NOTCURSES_GPM
3
4
#ifdef __cplusplus
5
extern
"C"
{
6
#endif
7
8
// internal header, not installed
9
10
struct
tinfo
;
11
struct
ncinput
;
12
13
// GPM ("General Purpose Mouse") provides an interface to mice in the Linux
14
// and FreeBSD consoles. The gpm server must be running; we do not attempt to
15
// start it. We must have been built with -DUSE_GPM.
16
17
// Returns the poll()able file descriptor associated with gpm, or -1 on failure.
18
int
gpm_connect
(
struct
tinfo
* ti);
19
20
// Read from the gpm connection, which ought have been poll()ed. Translates
21
// the libgpm input to an ncinput.
22
int
gpm_read
(
struct
tinfo
* ti,
struct
ncinput
* ni);
23
24
int
gpm_close
(
struct
tinfo
* ti);
25
26
// Returns a library-owned pointer to the libgpm client version.
27
const
char
*
gpm_version
(
void
);
28
29
#ifdef __cplusplus
30
}
31
#endif
32
33
#endif
gpm_version
const char * gpm_version(void)
Definition
gpm.c:95
gpm_read
int gpm_read(struct tinfo *ti, struct ncinput *ni)
Definition
gpm.c:84
gpm_close
int gpm_close(struct tinfo *ti)
Definition
gpm.c:90
gpm_connect
int gpm_connect(struct tinfo *ti)
Definition
gpm.c:79
ncinput
Definition
notcurses.h:1209
tinfo
Definition
termdesc.h:107
src
lib
gpm.h
Generated by
1.9.8