🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87351

19.27: On a VT220, "ESC ESC" causes mb to prompt "Eval: [23~"

#87351
From: franl
Date: Mon, 26 Sep 1994 19:50
31 lines
1931 bytes
Emacs version:	19.27
Configuration:	hppa1.1-hp-hpux --run-in-place
		--srcdir=/s/users/franl/src/gnu/emacs-19.27
		--x-includes=/usr/include/X11R5
		--x-libraries=/usr/lib/X11R5
Platform:	HP720 running HP-UX 9.03

The VT220 ESC key is function key 11 (F11), which sends the string
"\e[23~".  Using a VT220 terminal, type "ESC ESC" (i.e., type the F11
key twice), and the minibuffer displays this prompt:

	Eval: [23~

The cursor is positioned immediately to the right of the '~'.  I have
found that placing this code in my .emacs file prevents the problem
without breaking anything else:

      (define-key esc-map "\e" nil)
      (define-key esc-map "\e[23~" 'eval-expression)

(Of course, the above code is VT220-specific, and should only be
executed if Emacs is running on a VT220.)

Perhaps this is a bug in the way that read-key-sequence maps function
keys.  If you think there is no bug in read-key-sequence, then perhaps
the above two lines of Lisp could be added to lisp/term/vt220.el (and
any other lisp/term/vt*.el file that may need them).
--
Fran Litterio                   franl@centerline.com (617-498-3255)
CenterLine Software             http://draco.centerline.com:8080/~franl/
Cambridge, MA, USA 02138-1110   PGP public key id: 1270EA1D
Technical Details
Message-ID: <9409261946.AA25093@draco.centerline.com>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!centerline.com!franl

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,722098cead6f3060,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-09-26 13:01:45 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!centerline.com!franl
From: franl@centerline.com
Newsgroups: gnu.emacs.bug
Subject: 19.27: On a VT220, "ESC ESC" causes mb to prompt "Eval: [23~"
Date: 26 Sep 1994 15:50:45 -0400
Organization: GNUs Not Usenet
Lines: 31
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <9409261946.AA25093@draco.centerline.com>