root/foundation-apps/mxterm-maxx/xcharmouse.h
| Revision 8, 2.6 KB (checked in by emasson, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | /* $XTermId: xcharmouse.h,v 1.10 2007/02/07 23:32:03 tom 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 | #define SET_BUTTON1_MOVE_POINT 2001 /* click1 emit Esc seq to move point*/ |
| 50 | #define SET_BUTTON2_MOVE_POINT 2002 /* press2 emit Esc seq to move point*/ |
| 51 | #define SET_DBUTTON3_DELETE 2003 /* Double click-3 deletes */ |
| 52 | #define SET_PASTE_IN_BRACKET 2004 /* Surround paste by escapes */ |
| 53 | #define SET_PASTE_QUOTE 2005 /* Quote each char during paste */ |
| 54 | #define SET_PASTE_LITERAL_NL 2006 /* Paste "\n" as C-j */ |
| 55 | |
| 56 | #if OPT_DEC_LOCATOR |
| 57 | |
| 58 | /* Bit fields for screen->locator_events */ |
| 59 | #define LOC_BTNS_DN 0x1 |
| 60 | #define LOC_BTNS_UP 0x2 |
| 61 | |
| 62 | /* Special values for screen->loc_filter_* */ |
| 63 | #define LOC_FILTER_POS -1 |
| 64 | |
| 65 | #endif /* OPT_DEC_LOCATOR */ |
| 66 | |
| 67 | /* Values for screen->send_mouse_pos */ |
| 68 | enum { |
| 69 | MOUSE_OFF |
| 70 | ,X10_MOUSE |
| 71 | ,VT200_MOUSE |
| 72 | ,VT200_HIGHLIGHT_MOUSE |
| 73 | ,BTN_EVENT_MOUSE |
| 74 | ,ANY_EVENT_MOUSE |
| 75 | ,DEC_LOCATOR |
| 76 | }; |
| 77 | |
| 78 | #endif /* included_xcharmouse_h */ |
Note: See TracBrowser
for help on using the browser.
