-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
visio/key:
vkey()
: Lower the timeout interval while processing esca…
…pe sequences. - `igetch()`: - Extract function static variable `imode` as static variable `vi_mode` - Add flag `IM_VGET_ESC` for `vi_mode` for indicating that `vkey()` is processing a escape sequence - Disable some operations when `IM_VGET_ESC` is set - `vkey()` - Add struct `timeval` variables `esc_tv` & `seq_tv` - Set `vio_to` to `esc_tv` and set flag `IM_VGET_ESC` for getting a character after the initial `ESC` - Set `vio_to` to `seq_tv` for getting the remaining characters of the sequence - Add macros `VKEY_ESC_WAIT_TIME_MS` & `VKEY_SEQ_WAIT_TIME_MS` for configuring `esc_tv` & `seq_tv` - Restore `vio_to` and clear flag `IM_VGET_ESC` on returning - Refactor code using `switch`s - Refine comments
- Loading branch information
1 parent
0d48854
commit 4e5f210
Showing
1 changed file
with
151 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters