[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-21, screen, viper mode, ESC key delay
From: |
John E Hein |
Subject: |
emacs-21, screen, viper mode, ESC key delay |
Date: |
Mon, 17 Dec 2001 22:55:52 -0700 |
Hard to say whether this is a problem with emacs-21/viper-mode
or screen. But I can only re-create it in a screen session...
When running a stock emacs-21.1 -nw under screen (no .emacs, no .viper, no
other dot files at all), I have to wait a half second before
typing other characters after hitting ESC in insert mode in viper,
even when viper-ESC-keyseq-timeout is set to 0.
No problem when not running under screen (xterm or console).
example (don't delay between ESC and b in the example):
$ screen -v
Screen version 3.09.08 (FAU) 1-Sep-00
$ uname -a
FreeBSD brain.timing.com 4.3-RELEASE-p14-TSC FreeBSD 4.3-RELEASE-p14-TSC #1:
Tue A
ug 28 13:44:14 MDT 2001 address@hidden:/uv/staging/imp/FreeBSD-tsc-4/sys
/compile/BRAIN i386
$ gcc --version
2.95.3
$ screen
$ env
_=/usr/bin/env
PATH=/usr/bin:/bin:/sbin:/usr/sbin:/usr/local/bin
TERM=screen
SHELL=ksh
WINDOW=0
STY=24858.ttypd.piglet
HOME=/tmp/jhein/newhome
TERMCAP=SC|screen|VT 100/ANSI X3.64 virtual terminal:\
:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
:do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
:le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\
:li#47:co#80:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\
:cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\
:im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\
:ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\
:us=\E[4m:ue=\E[24m:so=\E[3m:se=\E[23m:mb=\E[5m:\
:md=\E[1m:mr=\E[7m:me=\E[m:ms:\
:Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:G0:\
:as=\E(0:ae=\E(B:\
:ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00
:\
:k0=\E[10~:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:\
:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\
:F1=\E[23~:F2=\E[24~:kb=^H:K1=\EOq:K2=\EOr:K3=\EOs:\
:K4=\EOp:K5=\EOn:kh=\E[1~:kH=\E[4~:@7=\EOF:kN=\E[6~:\
:kP=\E[5~:kI=\E[2~:kD=\E[3~:ku=\EOA:kd=\EOB:kr=\EOC:\
:kl=\EOD:km:
$ emacs-21 -nw
M-x viper-mode
n
5 (same issues at any viper level)
n
i (insert mode)
type a little bit of text
ESC (ESC immediately followed by b)
b (does M-b to move back a word instead of: going out of insert
mod
e and back-word)
b (inserts a 'b')
M-x set-variable
viper-ESC-keyseq-timeout
0
ESC
b (still the same problems as above)
b
Emacs-20 works fine (ESC takes me out of insert mode immediately).
Unsetting TERMCAP has no effect.
Alternate SHELLs exhibit the same problem.
When not running under screen, it seems to work fine. You could say this
points to screen, but there's no problem under the same version of screen
and emacs-20.
Same problem with a later version of screen (3.9.10).
After compiling screen with -DDEBUG, I didn't seem much interesting
in /tmp/debug. Here are a few term settings:
MakeTermcap screenterm='screen'
MakeTermcap termname='xterm'
MakeTermcap decided 'screen'
MakeTermcap after outcap '\
:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
:do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
:le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:'
But I can send the lengthy details (or browse through them
for requested info) if desired.
- emacs-21, screen, viper mode, ESC key delay,
John E Hein <=