diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-11-22 14:43:48 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-11-22 15:02:12 +0100 |
| commit | e9f28e98dd09a444fe5ce8a149745e08f9d4228e (patch) | |
| tree | 3099a19d7373cdbbf4580f6132b11ca249b399e8 /vis-cmds.c | |
| parent | b56bc7130e7158590c6e863adcb18fe9d46741b8 (diff) | |
| download | vis-e9f28e98dd09a444fe5ce8a149745e08f9d4228e.tar.gz vis-e9f28e98dd09a444fe5ce8a149745e08f9d4228e.tar.xz | |
vis: add `:set escdelay nn` option
Make the delay used to distinguish between an <Escape> 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.
Diffstat (limited to 'vis-cmds.c')
| -rw-r--r-- | vis-cmds.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |
