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