comparison src/feature.h @ 18354:9f51d0cef8da v8.1.2171

patch 8.1.2171: mouse support not always available Commit: https://github.com/vim/vim/commit/a1cb1d1dce14dd005797590721f1bcd0e7c3b35f Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 17 23:00:07 2019 +0200 patch 8.1.2171: mouse support not always available Problem: Mouse support not always available. Solution: Enable mouse support also in tiny version. Do not define FEAT_MOUSE_XTERM on MS-Windows (didn't really work).
author Bram Moolenaar <Bram@vim.org>
date Thu, 17 Oct 2019 23:15:04 +0200
parents e0ec4cd7a865
children 86c00b8fefea
comparison
equal deleted inserted replaced
18353:c3a0f5d3c9d4 18354:9f51d0cef8da
962 * +mouse_sgr Unix only: Include code for for SGR-styled mouse. 962 * +mouse_sgr Unix only: Include code for for SGR-styled mouse.
963 * +mouse_sysmouse Unix only: Include code for FreeBSD and DragonFly 963 * +mouse_sysmouse Unix only: Include code for FreeBSD and DragonFly
964 * console mouse handling. 964 * console mouse handling.
965 * +mouse_urxvt Unix only: Include code for for urxvt mosue handling. 965 * +mouse_urxvt Unix only: Include code for for urxvt mosue handling.
966 * +mouse Any mouse support (any of the above enabled). 966 * +mouse Any mouse support (any of the above enabled).
967 * Always included, since either FEAT_MOUSE_XTERM or
968 * DOS_MOUSE is defined.
967 */ 969 */
968 /* OS/2 and Amiga console have no mouse support */ 970 /* OS/2 and Amiga console have no mouse support */
969 #if !defined(AMIGA) 971 #if defined(UNIX) || defined(VMS)
970 # ifdef FEAT_NORMAL 972 # define FEAT_MOUSE_XTERM
971 # define FEAT_MOUSE_XTERM
972 # endif
973 # ifdef FEAT_BIG 973 # ifdef FEAT_BIG
974 # define FEAT_MOUSE_NET 974 # define FEAT_MOUSE_NET
975 # endif 975 # endif
976 # ifdef FEAT_BIG 976 # ifdef FEAT_BIG
977 # define FEAT_MOUSE_DEC 977 # define FEAT_MOUSE_DEC
978 # endif 978 # endif
979 # ifdef FEAT_BIG 979 # ifdef FEAT_BIG
980 # define FEAT_MOUSE_URXVT 980 # define FEAT_MOUSE_URXVT
981 # endif 981 # endif
982 # if defined(FEAT_NORMAL) && defined(MSWIN) 982 #endif
983 # define DOS_MOUSE 983 #if defined(MSWIN)
984 # endif 984 # define DOS_MOUSE
985 # if defined(FEAT_NORMAL) && defined(__QNX__) 985 #endif
986 # define FEAT_MOUSE_PTERM 986 #if defined(__QNX__)
987 # endif 987 # define FEAT_MOUSE_PTERM
988 #endif 988 #endif
989 989
990 /* 990 /*
991 * Note: Only one of the following may be defined: 991 * Note: Only one of the following may be defined:
992 * FEAT_MOUSE_GPM 992 * FEAT_MOUSE_GPM
1000 1000
1001 #if defined(FEAT_NORMAL) && defined(HAVE_SYSMOUSE) 1001 #if defined(FEAT_NORMAL) && defined(HAVE_SYSMOUSE)
1002 # define FEAT_SYSMOUSE 1002 # define FEAT_SYSMOUSE
1003 #endif 1003 #endif
1004 1004
1005 /* urxvt is a small variation of mouse_xterm, and shares its code */ 1005 // urxvt is a small variation of mouse_xterm, and shares its code
1006 #if defined(FEAT_MOUSE_URXVT) && !defined(FEAT_MOUSE_XTERM) 1006 #if defined(FEAT_MOUSE_URXVT) && !defined(FEAT_MOUSE_XTERM)
1007 # define FEAT_MOUSE_XTERM 1007 # define FEAT_MOUSE_XTERM
1008 #endif
1009
1010 /* Define FEAT_MOUSE when any of the above is defined or FEAT_GUI. */
1011 #if !defined(FEAT_MOUSE_TTY) \
1012 && (defined(FEAT_MOUSE_XTERM) \
1013 || defined(FEAT_MOUSE_NET) \
1014 || defined(FEAT_MOUSE_DEC) \
1015 || defined(DOS_MOUSE) \
1016 || defined(FEAT_MOUSE_GPM) \
1017 || defined(FEAT_MOUSE_JSB) \
1018 || defined(FEAT_MOUSE_PTERM) \
1019 || defined(FEAT_SYSMOUSE) \
1020 || defined(FEAT_MOUSE_URXVT))
1021 # define FEAT_MOUSE_TTY /* include non-GUI mouse support */
1022 #endif
1023 #if !defined(FEAT_MOUSE) && (defined(FEAT_MOUSE_TTY) || defined(FEAT_GUI))
1024 # define FEAT_MOUSE /* include generic mouse support */
1025 #endif 1008 #endif
1026 1009
1027 /* 1010 /*
1028 * +clipboard Clipboard support. Always used for the GUI. 1011 * +clipboard Clipboard support. Always used for the GUI.
1029 * +xterm_clipboard Unix only: Include code for handling the clipboard 1012 * +xterm_clipboard Unix only: Include code for handling the clipboard
1091 /* 1074 /*
1092 * +termresponse send t_RV to obtain terminal response. Used for xterm 1075 * +termresponse send t_RV to obtain terminal response. Used for xterm
1093 * to check if mouse dragging can be used and if term 1076 * to check if mouse dragging can be used and if term
1094 * codes can be obtained. 1077 * codes can be obtained.
1095 */ 1078 */
1096 #if (defined(FEAT_NORMAL) || defined(FEAT_MOUSE)) && defined(HAVE_TGETENT) 1079 #if defined(HAVE_TGETENT)
1097 # define FEAT_TERMRESPONSE 1080 # define FEAT_TERMRESPONSE
1098 #endif 1081 #endif
1099 1082
1100 /* 1083 /*
1101 * cursor shape Adjust the shape of the cursor to the mode. 1084 * cursor shape Adjust the shape of the cursor to the mode.