From e9f28e98dd09a444fe5ce8a149745e08f9d4228e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 22 Nov 2016 14:43:48 +0100 Subject: vis: add `:set escdelay nn` option Make the delay used to distinguish between an key and other terminal escape sequences such as for the Meta key run time configurable. The value is given in miliseconds and defaults to 50ms. Notice that terminal multiplexers like dvtm or tmux might also induce some delay which has to be configured independently. --- vis-cmds.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vis-cmds.c') diff --git a/vis-cmds.c b/vis-cmds.c index a266bb4..7218676 100644 --- a/vis-cmds.c +++ b/vis-cmds.c @@ -140,6 +140,12 @@ static bool cmd_set(Vis *vis, Win *win, Command *cmd, const char *argv[], Cursor vis->shell = shell; break; } + case OPTION_ESCDELAY: + { + TermKey *termkey = vis->ui->termkey_get(vis->ui); + termkey_set_waittime(termkey, arg.i); + break; + } case OPTION_EXPANDTAB: vis->expandtab = arg.b; break; -- cgit v1.2.3