mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 04:27:00 +00:00
Support all four of the xterm mouse modes. Based on a diff from hsim at
gmx.li.
This commit is contained in:
14
tmux.h
14
tmux.h
@ -545,9 +545,14 @@ struct mode_key_table {
|
||||
#define MODE_INSERT 0x2
|
||||
#define MODE_KCURSOR 0x4
|
||||
#define MODE_KKEYPAD 0x8 /* set = application, clear = number */
|
||||
#define MODE_MOUSE 0x10
|
||||
#define MODE_MOUSEMOTION 0x20
|
||||
#define MODE_WRAP 0x40 /* whether lines wrap */
|
||||
#define MODE_WRAP 0x10 /* whether lines wrap */
|
||||
#define MODE_MOUSE_STANDARD 0x20
|
||||
#define MODE_MOUSE_HIGHLIGHT 0x40
|
||||
#define MODE_MOUSE_BUTTON 0x80
|
||||
#define MODE_MOUSE_ANY 0x100
|
||||
|
||||
#define ALL_MOUSE_MODES (MODE_MOUSE_STANDARD| \
|
||||
MODE_MOUSE_HIGHLIGHT|MODE_MOUSE_BUTTON|MODE_MOUSE_ANY)
|
||||
|
||||
/*
|
||||
* A single UTF-8 character.
|
||||
@ -1808,7 +1813,8 @@ void screen_write_cursormode(struct screen_write_ctx *, int);
|
||||
void screen_write_reverseindex(struct screen_write_ctx *);
|
||||
void screen_write_scrollregion(struct screen_write_ctx *, u_int, u_int);
|
||||
void screen_write_insertmode(struct screen_write_ctx *, int);
|
||||
void screen_write_mousemode(struct screen_write_ctx *, int);
|
||||
void screen_write_mousemode_on(struct screen_write_ctx *, int);
|
||||
void screen_write_mousemode_off(struct screen_write_ctx *);
|
||||
void screen_write_linefeed(struct screen_write_ctx *, int);
|
||||
void screen_write_linefeedscreen(struct screen_write_ctx *, int);
|
||||
void screen_write_carriagereturn(struct screen_write_ctx *);
|
||||
|
Reference in New Issue
Block a user