mirror of
https://github.com/tmux/tmux.git
synced 2026-10-09 19:54:22 +00:00
Add a define for whether mouse is enabled by default (still off).
This commit is contained in:
@@ -956,7 +956,7 @@ const struct options_table_entry options_table[] = {
|
|||||||
{ .name = "mouse",
|
{ .name = "mouse",
|
||||||
.type = OPTIONS_TABLE_FLAG,
|
.type = OPTIONS_TABLE_FLAG,
|
||||||
.scope = OPTIONS_TABLE_SESSION,
|
.scope = OPTIONS_TABLE_SESSION,
|
||||||
.default_num = 0,
|
.default_num = TMUX_MOUSE,
|
||||||
.text = "Whether the mouse is recognised and mouse key bindings are "
|
.text = "Whether the mouse is recognised and mouse key bindings are "
|
||||||
"executed. "
|
"executed. "
|
||||||
"Applications inside panes can use the mouse even when 'off'."
|
"Applications inside panes can use the mouse even when 'off'."
|
||||||
|
|||||||
3
tmux.h
3
tmux.h
@@ -90,6 +90,9 @@ struct winlink;
|
|||||||
#ifndef TMUX_TERM
|
#ifndef TMUX_TERM
|
||||||
#define TMUX_TERM "screen"
|
#define TMUX_TERM "screen"
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef TMUX_MOUSE
|
||||||
|
#define TMUX_MOUSE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Minimum and maximum layout cell size, NOT including border lines. */
|
/* Minimum and maximum layout cell size, NOT including border lines. */
|
||||||
#define PANE_MINIMUM 1
|
#define PANE_MINIMUM 1
|
||||||
|
|||||||
Reference in New Issue
Block a user