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