version 1.232, 2010/06/29 03:30:14 |
version 1.233, 2010/06/29 05:24:49 |
|
|
u_int last_width; |
u_int last_width; |
}; |
}; |
|
|
|
/* |
|
* xterm mouse mode is fairly silly. Buttons are in the bottom two |
|
* bits: 0 button 1; 1 button 2; 2 button 3; 3 buttons released. |
|
* |
|
* Bit 3 is shift; bit 4 is meta; bit 5 control. |
|
* |
|
* Bit 6 is added for mouse buttons 4 and 5. |
|
*/ |
/* Mouse input. */ |
/* Mouse input. */ |
struct mouse_event { |
struct mouse_event { |
u_char b; |
u_char b; |
|
#define MOUSE_1 0 |
|
#define MOUSE_2 1 |
|
#define MOUSE_3 2 |
|
#define MOUSE_UP 3 |
|
#define MOUSE_BUTTON 3 |
|
#define MOUSE_45 64 |
u_char x; |
u_char x; |
u_char y; |
u_char y; |
}; |
}; |