[comp.unix.questions] TERMCAP entry for vt220, anyone

pilgrimk@lafcol.UUCP (Sjambok, the foreign plague) (11/01/88)

I need the termcap entry for vt220.

Please email
pilgrimk@lafcol
thanks

aland@infmx.UUCP (Dr. Scump) (11/03/88)

In article <321@lafcol.UUCP>, pilgrimk@lafcol.UUCP (Sjambok, the foreign plague) writes:
> I need the termcap entry for vt220.
> 
> Please email
> pilgrimk@lafcol
> thanks

I almost went crazy trying to do this (well, allright, I *did* go crazy,
but not from just this :-])...  

One problem is that when you are in vt220 mode, your ESCAPE key no
longer generates the ESCAPE character (ascii 27), it generates
"CSI 2 3 ~" instead (for use as F11).  Therefore, another key (no pun
intended) question is: how do you generate ESC from the keyboard in 
vt220 mode?  (When in vt100 mode, ESC is generated using the ESC/F11 key).

I wrote a termcap that seems to work otherwise, but vt220 mode is
useless to me if the result is that you have no ESCAPE key.

Am I missing something?

-- 
 Alan S. Denney  |  Informix Software, Inc.  |  {pyramid|uunet}!infmx!aland
 Disclaimer: These opinions are mine alone.  If I am caught or killed,
             the secretary will disavow any knowledge of my actions.
 Santos' 4th Law: "Anything worth fighting for is worth fighting *dirty* for"

larry@sbo.UUCP (Larry Mullen) (11/04/88)

   In response to the question about how to generate an ESC on a vt220;

To generate an escape on several vt220 lookalikes which we use here,
I use the sequence CTRL-3 where the 3 is on the main keyboard not the 10
key pad. I don't know if this is standard but it's worked on 3 different
terminals here.
						Larry Mullen
						...noao!nud!sbo!larry

leo@philmds.UUCP (Leo de Wit) (11/04/88)

In article <601@infmx.UUCP> aland@infmx.UUCP (Dr. Scump) writes:
 [...]
|One problem is that when you are in vt220 mode, your ESCAPE key no
|longer generates the ESCAPE character (ascii 27), it generates
|"CSI 2 3 ~" instead (for use as F11).  Therefore, another key (no pun
|intended) question is: how do you generate ESC from the keyboard in 
|vt220 mode?  (When in vt100 mode, ESC is generated using the ESC/F11 key).

Use ^[ (Control [).
I worked once on a adm3a that has no TAB key; had to use ^I instead 8-).
Are we going back to the old days with those modern sofisticated keyboards?

       Leo.

gordon@prls.UUCP (Gordon Vickers) (11/05/88)

In article <887@sbo.UUCP> larry@sbo.UUCP (Larry Mullen) writes:
->
->   In response to the question about how to generate an ESC on a vt220;
->
->To generate an escape on several vt220 lookalikes which we use here,
->I use the sequence CTRL-3 where the 3 is on the main keyboard not the 10
->key pad. I don't know if this is standard but it's worked on 3 different
->terminals here.
->						Larry Mullen
->						...noao!nud!sbo!larry

    NO, it certainly isn't standard, in fact it's weird !
    What is a standard alternitive is CTRL-[ also often written as ^[  .

    For those interested, a few years ago a wrote a utility that allows
    VT200, and VT300 users an easy way to redefine functions keys.  It
    automatically programs the ESC key correctly.  The user may keep
    any number of files that contain function key definitions and simply
    direct the utility's attention to the desired file.  This makes it
    quite easy to redefine the functions keys anytime.  It takes just
    seconds to redefine your keys for any application.  You can even
    put newlines into the definiton !

      This program ( called keydef ) has been used at a number of sites,
    and is believed to be bug free.  I wrote it when I was first learning
    'C' so the code isn't very pretty, in fact, I'm embarressed by it. Still
    it works simply, and reliably.  I hope to rewrite it soon and post it
    if there is suffeciant interest.  In the mean time, for those who can't
    wait, drop me a line and I'll email the old version to you.

Gordon Vickers 408/991-5370 (Sunnyvale,Ca); {mips|pyramid|philabs}!prls!gordon

torsten@pcsbst.UUCP (Torsten Homeyer) (11/05/88)

In article <601@infmx.UUCP> aland@infmx.UUCP (Dr. Scump) writes:
[..]
>I wrote a termcap that seems to work otherwise, but vt220 mode is
>useless to me if the result is that you have no ESCAPE key.
>
>Am I missing something?

	Yes : ESCAPE == CTRL-[

		Torsten.
---
Name    : Torsten Homeyer         {tho@pcsbst ; torsten@homeyer}.UUCP
Company : PCS GmbH, Munich W-Germany.
UUCP  : ..uunet!unido!pcsbst!tho     ..uunet!unido!pcsbst!sws4!torsten
PRIVAT: ..unido!{pcsbst,megalon,mikros,[altger,netmbx]!oldman}!homeyer!torsten

rbj@nav.icst.nbs.gov (Root Boy Jim) (11/29/88)

? One problem is that when you are in vt220 mode, your ESCAPE key no
? longer generates the ESCAPE character (ascii 27), it generates
? "CSI 2 3 ~" instead (for use as F11).  Therefore, another key (no pun
? intended) question is: how do you generate ESC from the keyboard in 
? vt220 mode?  (When in vt100 mode, ESC is generated using the ESC/F11 key).

? I wrote a termcap that seems to work otherwise, but vt220 mode is
? useless to me if the result is that you have no ESCAPE key.

? Am I missing something?

Escape is Control-[. BTW, you probably want to run with the `communications
set-up' menu in `7-bits, space parity', and the `general set-up' in
`vt220 mode, 7 bit controls'. Wanna guess what kind of terminal I have?

?  Alan S. Denney  |  Informix Software, Inc.  |  {pyramid|uunet}!infmx!aland

	(Root Boy) Jim Cottrell	(301) 975-5688
	<rbj@nav.icst.nbs.gov> or <rbj@icst-cmr.arpa>
	Crackers and Worms -- Breakfast of Champions!

inb@creare.UUCP (Ian Brown) (11/30/88)

In article <17650@adm.BRL.MIL> rbj@nav.icst.nbs.gov (Root Boy Jim) writes:
:? Therefore, another key (no pun
:? intended) question is: how do you generate ESC from the keyboard in 
:? vt220 mode?  (When in vt100 mode, ESC is generated using the ESC/F11 key).
:Escape is Control-[.

The other option is to use Control-3.  This only requires one hand.

>?  Alan S. Denney  |  Informix Software, Inc.  |  {pyramid|uunet}!infmx!aland
>	(Root Boy) Jim Cottrell	(301) 975-5688


-- 
===============================================================================
							Ian Brown
							..!dartvax!creare!inb