From:	CRDGW2::CRDGW2::MRGATE::"SMTP::PREP.AI.MIT.EDU::HELP-GNU-EMACS-REQUEST" 25-FEB-1992 02:27:37.08
To:	ARISIA::EVERHART
CC:	
Subj:	Re: Recognition of arrow keys

From:	help-gnu-emacs-request@prep.ai.mit.edu@SMTP@CRDGW2
To:	Everhart@Arisia@MRGATE

Received:  by crdgw1.ge.com (5.57/GE 1.123)
	 id AA08977; Tue, 25 Feb 92 01:56:05 EST
Received: by life.ai.mit.edu (4.1/AI-4.10) id AA07101; Mon, 24 Feb 92 15:31:54 EST
Return-Path: <help-gnu-emacs-request@prep.ai.mit.edu>
Received: from news.cis.ohio-state.edu by life.ai.mit.edu (4.1/AI-4.10) id AA06873; Mon, 24 Feb 92 15:28:12 EST
Received: by news.cis.ohio-state.edu (5.61-kk/5.911008)
	id AA12311; Mon, 24 Feb 92 15:19:56 -0500
Received: from USENET by news.cis.ohio-state.edu with netnews
	for help-gnu-emacs@prep.ai.mit.edu (help-gnu-emacs@prep.ai.mit.edu);
	contact usenet@news.cis.ohio-state.edu if you have questions.
To: help-gnu-emacs@prep.ai.mit.edu
Date: 24 Feb 92 18:44:41 GMT
Message-Id: <1992Feb24.184441.18765@digi.lonestar.org>
Organization: DSC Communications Corp, Plano, TX
From: kgallagh@digi.lonestar.org (Kevin Gallagher)
Sender: help-gnu-emacs-request@prep.ai.mit.edu
References: <1992Feb21.195715.6975@athena.cs.uga.edu>, <9202220029.AA10281@banach.math.ep.utexas.edu>Sun.COM
Subject: Re: Recognition of arrow keys

In article <9202220029.AA10281@banach.math.ep.utexas.edu> jerry@math.ep.utexas.EDU (Jerry) writes:
>Michael A. Covington writes:
>[stuff about arrow keys working/not working depending on TERM ...]
>> It appears that rather than looking at /etc/termcap, Emacs is
>> looking for "vt100" in the value of TERM.  Correct?  How can I tell
>> it that "vt102" is just as good?
>
>Copy the file .../lisp/term/vt100.el to .../lisp/term/vt102.el.

To avoid duplication of code, copy the file .../lisp/term/vt125.el to
.../lisp/term/vt102.el.  The file vt125.el contains the single line:

    (load (concat term-file-prefix "vt100") nil t)

By the way, if your site's /etc/termcap does not contain an entry for vt102,
GNU Emacs will object if the environment variable TERM is set to vt102, even
if there exists a .../lisp/term/vt102.el.

Of course, if you are doing this under VMS, then the system has no
/etc/termcap.  Instead, when running under VMS, GNU Emacs looks for the
termcap file in the GNU Emacs ETC directory.  The version found in the GNU
Emacs 18.55 distribution does NOT have a vt102 entry.  So, to make GNU Emacs
work for a VT102 terminal under VMS, you need to patch the [EMACS.ETC]TERMCAP
file, as well.  Included below is the VMS differences in which I added support
for most VT1xx terminals and VT300 series terminals when running under VMS.
Of course, you will also need to add a vt300.el file in the [EMACS.LISP.TERM]
directory containing the following single line:

    (load (concat term-file-prefix "vt200") nil t)

Basically, these termcap patches simply tell Emacs to treat VT1xx terminals
as if they were VT100's and VT300 series terminals as if they were VT200
series terminals.

By the way, the key bindings in the vtxxx.el files only support 7-bit
controls, so be sure to configure your VTxxx series terminal to use
only 7-bit controls.


************
File TUG0:[KGALLAGH.EMACS.ETC]TERMCAP.DAT-DIST;1
  464   d0|vt100-132|vt125-132|dec vt100 with 132 columns:\
  465   	:co#132:tc=vt100:
  466   d0|vt100|vt100-am|vt100-80|vt125|vt125-80|dec vt100:\
  467   	:cr=^M:bl=^G:le=^H:do=\ED:ho=\E[H:\
******
File TUG0:[KGALLAGH.EMACS.ETC]TERMCAP.DAT;1
  464   # Added vt101, vt102, vt131. -- kg 5/91
  465   d0|vt100-132|vt101-132|vt102-132|vt125-132|vt131-132|dec vt100 with 132 columns:\
  466   	:co#132:tc=vt100:
  467   d0|vt100|vt100-am|vt100-80|vt101|vt101-80|vt102|vt102-80|vt125|vt125-80|vt131|vt131-80|dec vt100:\
  468   	:cr=^M:bl=^G:le=^H:do=\ED:ho=\E[H:\
************
************
File TUG0:[KGALLAGH.EMACS.ETC]TERMCAP.DAT-DIST;1
  551   d0|vt200-80|vt200|VT 200 with 80 columns, on VMS:\
  552   	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
******
File TUG0:[KGALLAGH.EMACS.ETC]TERMCAP.DAT;1
  552   # Added vt300, kg.
  553   d0|vt200-80|vt200|vt300-80|vt300|VT 200 with 80 columns, on VMS:\
  554   	:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
************
************
File TUG0:[KGALLAGH.EMACS.ETC]TERMCAP.DAT-DIST;1
  563   d0|vt200-132|VT 200 with 132 columns, on VMS:\
  564   	:co#132:tc=vt200-80:
******
File TUG0:[KGALLAGH.EMACS.ETC]TERMCAP.DAT;1
  565   d0|vt200-132|vt300-132|VT 200 with 132 columns, on VMS:\
  566   	:co#132:tc=vt200-80:
************

Number of difference sections found: 3
Number of difference records found: 7

DIFFERENCES /IGNORE=()/MERGED=1/OUTPUT=TUG0:[KGALLAGH.EMACS.ETC]TERMCAP.DIFF;1-
    TUG0:[KGALLAGH.EMACS.ETC]TERMCAP.DAT-DIST;1-
    TUG0:[KGALLAGH.EMACS.ETC]TERMCAP.DAT;1

-- 
----------------------------------------------------------------------------
Kevin Gallagher        kgallagh@digi.lonestar.org OR ...!uunet!digi!kgallagh
DSC Communications Corporation   Addr: MS 152, 1000 Coit Rd, Plano, TX 75075
----------------------------------------------------------------------------
