delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/19/00:59:52

From: cgw AT pgt DOT com (Charles G Waldman)
Subject: vi and xterm
19 Sep 1998 00:59:52 -0700 :
Message-ID: <13826.36217.880344.257965.cygnus.gnu-win32@janus.pgt.com>
References: <19980917163423 DOT 3728 DOT qmail AT hotmail DOT com>
Mime-Version: 1.0
To: "John vanVlaanderen" <johnvv AT hotmail DOT com>
Cc: gnu-win32 AT cygnus DOT com

John vanVlaanderen writes:

 > How do I get a vi or any other editor running in my xterm window.

Get a decent "/etc/termcap" and make sure TERM is set appropriately.
I have /etc/termcap cribbed from a Linux box and "TERM" is set to
"xterm".  The relevant section from /etc/termcap is pasted below.

Make sure your CYGWIN32 variable is set to include the "tty" option
I have CYGWIN32="binmode notitle ntea tty"

Make sure you have updated the Cygwin32 DLL to Sergei Okhapin's
"Coolview" release or the 19.4 version from Andy Piper's site.

If you want the xterm to come up with vi already running, 
do something like "xterm (your favorite xterm options) -e vi"

 > Having done that I can walk into my new boss's office with a big
 > grin.

Don't grin too big, or else the program you are trying to show him is
bound to crash or hang embarrassingly ;-)


From /etc/termcap:

# Entry for an xterm. Insert mode has been disabled.
vs|xterm|vs100|xterm terminal emulator (X Window System):\
        :am:bs:mi@:km:co#80:li#55:\
        :im@:ei@:\
        :ct=\E[3k:ue=\E[m:\
        :is=\E[m\E[?1l\E>:\
        :rs=\E[m\E[?1l\E>:\
        :eA=\E)0:as=^N:ae=^O:ac=aaffggjjkkllmmnnooqqssttuuvvwwxx:\
        :kI=\E[2~:kD=\177:kP=\E[5~:kN=\E[6~:\
        :k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\
        :k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k0=\E[21~:\
        :F1=\E[23~:F2=\E[24~:\
        :kh=\E[H:kH=\EOw:\
        :ks=:ke=:\
        :te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:\
        :tc=vt-generic:


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019