From 38c92c3be6ed413ac5a540921679ed5c6a3661ea Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Thu, 12 May 2011 05:55:44 +0100 Subject: updaed vim input.txt with some more notes. --- vim-mode/input.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/vim-mode/input.txt b/vim-mode/input.txt index 790060a..1767180 100644 --- a/vim-mode/input.txt +++ b/vim-mode/input.txt @@ -56,3 +56,25 @@ sub check_escape_buffer { # if the buffer is otherwise empty, we have received a single escape press. mode = command_mode; } + + +handling escape vs escape sequences: + +if we see an ESC +set 'seen esc' flag +start timeout + +if seen_esc and another key comes in, cancel timeout, and treat as esc sequence? +(can we enumerate possible esc sequences? + +ESC +ESC-char (meta-char) +ESC-[ (CSI) +ESC-[O (app form of CSI) + +when timeout expires, unset 'seen esc' flag +process input buffer. + + + + -- cgit v1.2.3