Go to the source code of this file.
◆ XTSHIFTESCAPE
#define XTSHIFTESCAPE "\x1b[>1s" |
◆ mouse_setup()
int mouse_setup |
( |
tinfo * |
ti, |
|
|
unsigned |
eventmask |
|
) |
| |
Definition at line 3 of file mice.c.
3 {
5 if(eventmask == 0){
7 return 0;
8 }
11 }
13
15 return -1;
16 }
17 }
18 return 0;
19 }
21 logerror(
"no tty, not emitting mouse control\n");
22 return -1;
23 }
24
25 char command = 'h';
26
27
34 }else if(eventmask == 0){
36 return 0;
37 }
38 command = 'l';
39 }
40
41
42#define XTSHIFTESCAPE "\x1b[>1s"
43 char* mousecmd;
46 mousecmd = m;
47 }else{
49 mousecmd = m;
50 }
52 mousecmd[17] = command;
53 if(command == 'l'){
55 }
56 return tty_emit(mousecmd, ti->
ttyfd);
57#undef XTSHIFTESCAPE
58}
int gpm_connect(tinfo *ti)
#define SET_PIXEL_MOUSE_PROT
#define SET_SGR_MOUSE_PROT
#define logerror(fmt,...)
#define NCMICE_BUTTON_EVENT
#define NCMICE_DRAG_EVENT
#define NCMICE_MOVE_EVENT
queried_terminals_e qterm