From 2e9d7ebf15615b51b014a12de03b0e5483aadf99 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 21 Mar 2024 11:53:11 +0000 Subject: 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. --- options-table.c | 2 +- tmux.1 | 13 +++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/options-table.c b/options-table.c index df36f1f0..8187ad08 100644 --- a/options-table.c +++ b/options-table.c @@ -286,7 +286,7 @@ const struct options_table_entry options_table[] = { .scope = OPTIONS_TABLE_SERVER, .minimum = 0, .maximum = INT_MAX, - .default_num = 500, + .default_num = 10, .unit = "milliseconds", .text = "Time to wait before assuming a key is Escape." }, diff --git a/tmux.1 b/tmux.1 index 32215371..186ffee0 100644 --- a/tmux.1 +++ b/tmux.1 @@ -3745,7 +3745,6 @@ Set the time in milliseconds for which .Nm waits after an escape is input to determine if it is part of a function or meta key sequences. -The default is 500 milliseconds. .It Ic editor Ar shell-command Set the command used when .Nm @@ -6116,7 +6115,7 @@ the default is .Ql y . .Tg menu .It Xo Ic display-menu -.Op Fl O +.Op Fl OM .Op Fl b Ar border-lines .Op Fl c Ar target-client .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 must be clicked to choose an item. .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 .It Sy "Key" Ta Sy "Function" .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. If .Ar template -is not given, "paste-buffer -b \[aq]%%\[aq]" is used. +is not given, "paste-buffer -p -b \[aq]%%\[aq]" is used. .Pp .Fl O specifies the initial sort field: one of -- cgit v1.2.3