aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2011-05-12 04:55:44 +0000
committerTom Feist <shabble@metavore.org>2011-05-12 04:55:44 +0000
commit38c92c3be6ed413ac5a540921679ed5c6a3661ea (patch)
treef3d0f60e632b792f617502367e0d033a559e17d9
parentvim-mode/vim_mode: more broken. Need to start over, I think. (diff)
downloadirssi-scripts-38c92c3be6ed413ac5a540921679ed5c6a3661ea.tar.gz
irssi-scripts-38c92c3be6ed413ac5a540921679ed5c6a3661ea.zip
updaed vim input.txt with some more notes.vim-newinput
-rw-r--r--vim-mode/input.txt22
1 files changed, 22 insertions, 0 deletions
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.
+
+
+
+