1
0
mirror of https://github.com/tmux/tmux.git synced 2025-04-13 14:58:50 +00:00

Reduce escape-time default to 10 milliseconds, 500 is far too long for

modern terminals and networks. Case made by Kurtis Rader in GitHub issue
3844.
This commit is contained in:
nicm 2024-03-21 11:53:11 +00:00
parent d8ddeec7db
commit 2e9d7ebf15
2 changed files with 10 additions and 5 deletions

View File

@ -286,7 +286,7 @@ const struct options_table_entry options_table[] = {
.scope = OPTIONS_TABLE_SERVER, .scope = OPTIONS_TABLE_SERVER,
.minimum = 0, .minimum = 0,
.maximum = INT_MAX, .maximum = INT_MAX,
.default_num = 500, .default_num = 10,
.unit = "milliseconds", .unit = "milliseconds",
.text = "Time to wait before assuming a key is Escape." .text = "Time to wait before assuming a key is Escape."
}, },

13
tmux.1
View File

@ -3745,7 +3745,6 @@ Set the time in milliseconds for which
.Nm .Nm
waits after an escape is input to determine if it is part of a function or meta waits after an escape is input to determine if it is part of a function or meta
key sequences. key sequences.
The default is 500 milliseconds.
.It Ic editor Ar shell-command .It Ic editor Ar shell-command
Set the command used when Set the command used when
.Nm .Nm
@ -6116,7 +6115,7 @@ the default is
.Ql y . .Ql y .
.Tg menu .Tg menu
.It Xo Ic display-menu .It Xo Ic display-menu
.Op Fl O .Op Fl OM
.Op Fl b Ar border-lines .Op Fl b Ar border-lines
.Op Fl c Ar target-client .Op Fl c Ar target-client
.Op Fl C Ar starting-choice .Op Fl C Ar starting-choice
@ -6223,7 +6222,13 @@ changes this behaviour so that the menu does not close when the mouse button is
released without an item selected the menu is not closed and a mouse button released without an item selected the menu is not closed and a mouse button
must be clicked to choose an item. must be clicked to choose an item.
.Pp .Pp
The following keys are also available: .Fl M
tells
.Nm
the menu should handle mouse events; by default only menus opened from mouse
key bindings do so.
.Pp
The following keys are available in menus:
.Bl -column "Key" "Function" -offset indent .Bl -column "Key" "Function" -offset indent
.It Sy "Key" Ta Sy "Function" .It Sy "Key" Ta Sy "Function"
.It Li "Enter" Ta "Choose selected item" .It Li "Enter" Ta "Choose selected item"
@ -6469,7 +6474,7 @@ is replaced by the buffer name in
and the result executed as a command. and the result executed as a command.
If If
.Ar template .Ar template
is not given, "paste-buffer -b \[aq]%%\[aq]" is used. is not given, "paste-buffer -p -b \[aq]%%\[aq]" is used.
.Pp .Pp
.Fl O .Fl O
specifies the initial sort field: one of specifies the initial sort field: one of