From 75955b2215c54cc956aaf5d928ecda299f102cb0 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 21 Mar 2024 11:53:11 +0000 Subject: [PATCH] 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. --- usr.bin/tmux/options-table.c | 4 ++-- usr.bin/tmux/tmux.1 | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/usr.bin/tmux/options-table.c b/usr.bin/tmux/options-table.c index 3dbc1b8479b..65265ce9077 100644 --- a/usr.bin/tmux/options-table.c +++ b/usr.bin/tmux/options-table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options-table.c,v 1.169 2024/02/13 08:10:23 nicm Exp $ */ +/* $OpenBSD: options-table.c,v 1.170 2024/03/21 11:53:11 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott @@ -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/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1 index 1989e4c1ece..bf0344bca9c 100644 --- a/usr.bin/tmux/tmux.1 +++ b/usr.bin/tmux/tmux.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tmux.1,v 1.939 2024/03/21 11:51:32 nicm Exp $ +.\" $OpenBSD: tmux.1,v 1.940 2024/03/21 11:53:11 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott .\" @@ -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 -- 2.20.1