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
5extern "C" {
6#endif
7
8// internal header, not installed
9
10struct tinfo;
11struct 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.
18int 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.
22int gpm_read(struct tinfo* ti, struct ncinput* ni);
23
24int gpm_close(struct tinfo* ti);
25
26// Returns a library-owned pointer to the libgpm client version.
27const char* gpm_version(void);
28
29#ifdef __cplusplus
30}
31#endif
32
33#endif
const char * gpm_version(void)
Definition gpm.c:95
int gpm_read(struct tinfo *ti, struct ncinput *ni)
Definition gpm.c:84
int gpm_close(struct tinfo *ti)
Definition gpm.c:90
int gpm_connect(struct tinfo *ti)
Definition gpm.c:79