initial commit
[profile/ivi/xterm.git] / xcharmouse.h
1 /* $XTermId: xcharmouse.h,v 1.12 2010/08/19 09:30:03 Ryan.Johnson Exp $ */
2
3 /************************************************************
4
5 Copyright 1998 by Jason Bacon <acadix@execpc.com>
6
7                         All Rights Reserved
8
9 Permission to use, copy, modify, and distribute this software and its
10 documentation for any purpose and without fee is hereby granted,
11 provided that the above copyright notice appear in all copies and that
12 both that copyright notice and this permission notice appear in
13 supporting documentation, and that the name of the above listed
14 copyright holder(s) not be used in advertising or publicity pertaining
15 to distribution of the software without specific, written prior
16 permission.
17
18 THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD
19 TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
20 AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
21 LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
22 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
23 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
24 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
25
26 ********************************************************/
27
28 #ifndef included_xcharmouse_h
29 #define included_xcharmouse_h
30
31 /*
32  * Macros for dpmodes
33  * J. Bacon, acadix@execpc.com, June 1998
34  * Steve Wall, September 1999
35  * Ilya Zakharevich, August 2002
36  */
37
38 /* DECSET arguments for turning on mouse reporting modes */
39 #define SET_X10_MOUSE               9
40 #define SET_VT200_MOUSE             1000
41 #define SET_VT200_HIGHLIGHT_MOUSE   1001
42 #define SET_BTN_EVENT_MOUSE         1002
43 #define SET_ANY_EVENT_MOUSE         1003
44
45 #if OPT_FOCUS_EVENT
46 #define SET_FOCUS_EVENT_MOUSE       1004 /* can be combined with above */
47 #endif
48
49 /* Extend mouse tracking for terminals wider(taller) than 223 cols(rows) */
50 #define SET_EXT_MODE_MOUSE          1005 /* compatible with above */
51
52 #define SET_BUTTON1_MOVE_POINT      2001 /* click1 emit Esc seq to move point*/
53 #define SET_BUTTON2_MOVE_POINT      2002 /* press2 emit Esc seq to move point*/
54 #define SET_DBUTTON3_DELETE         2003 /* Double click-3 deletes */
55 #define SET_PASTE_IN_BRACKET        2004 /* Surround paste by escapes */
56 #define SET_PASTE_QUOTE             2005 /* Quote each char during paste */
57 #define SET_PASTE_LITERAL_NL        2006 /* Paste "\n" as C-j */
58
59 #if OPT_DEC_LOCATOR
60
61 /* Bit fields for screen->locator_events */
62 #define LOC_BTNS_DN             0x1
63 #define LOC_BTNS_UP             0x2
64
65 /* Special values for screen->loc_filter_* */
66 #define LOC_FILTER_POS          -1
67
68 #endif /* OPT_DEC_LOCATOR */
69
70 /* Values for screen->send_mouse_pos */
71 typedef enum {
72     MOUSE_OFF
73     ,X10_MOUSE
74     ,VT200_MOUSE
75     ,VT200_HIGHLIGHT_MOUSE
76     ,BTN_EVENT_MOUSE
77     ,ANY_EVENT_MOUSE
78     ,DEC_LOCATOR
79 } XtermMouseModes;
80
81 #endif /* included_xcharmouse_h */