[comp.sys.sgi] VMS & SGI and terminfo

TKIRKMAN%MOE@MSUS1.MSUS.EDU (Tom Kirkman) (05/01/91)

a couple of days ago I asked:
>So, my question is, how can I make VI work for students who telnet to
>our PI & hence automatically have TERM=vt200.

I was on the right track with:
>Apparently the VAX passes
>TERM=vt200 to the PI, but there is no /usr/lib/terminfo/v/vt200 file
>(although there is a vt220 file).  So I used infocmp vt220 >vt200.tic,
>editted the first line of the vt200.tic file to read vt200, and 
>finally tic vt200.tic.  

the bug seems to be with SGI's vt220 terminfo file. 
is2=...\E[?1h... 
initializes the terminal to send not normal (rather "application") codes
when a cursor key is pushed, but the terminfo file has
kcub1=\E[D, etc
which are the normal cursor codes.  (Running a TERM=vt100 vi session 
resets the cursor codes to normal, hence the odd results.)  SO, removing
\E[?1h in is2 in vt200.tic seems to have solved my problem.  (While I
was at it I removed flash=\E... as I prefer bels to flashes.)

I got some help on another question I asked:
>How about using the console keyboard in a session telneted to the VMS vax...
>any suggested keybinding to make using EDT & TPU easier?
One suggestion was to use
wsh -v
but wsh -v turned out to be a bad vt100 emulator: it couldn't id itself to
the vax & it screwed up scrolling in edt.

A better suggested option was to use xterm & the below command file for edt:

------------------------------------------------------------------
define key function 20 as "GOLD"
define key function 21 as "HELP."
define key function 23 as " "" ""."
define key function 24 as "D+NL."
define key gold function 21 as "HELP."
define key gold function 23 as "SSEL""?'Search for: '""DESEL."
define key gold function 24 as "UNDL."
define key 18 as "D+C."
define key gold 18 as "UNDC."
-------------------------------------------------------------------

PS I still have lots of other stupid terminal/VAX related questions:
Should I/how do I make delete be the backspace key for those telneted vt220s?
I know I should get emacs pdq, but I would also like EDT & TPU emulators
for these students.  Can you suggest any?
UCX seems to lack hooks for remote printing.  Any cheap alternatives
or workarounds?

Again, many thanks for past (& I hope future) responses.

-------------------------------------------------------------------------------
Tom Kirkman                   DECnet:                           55860::TKIRKMAN
Dept. of Physics              HEP-> MNHEP::55860::        SPAN-> WAVES::55860::
St. John's University         INTERnet:           tkirkman%55860@vx.acs.umn.edu
Collegeville, MN 56321                            tkirkman%55860@msus1.msus.edu
(612) 363-3811                BITnet:                           tkirkman@csbsju
(612) 363-3151                                               FAX:(612) 363-2504
-------------------------------------------------------------------------------

silvert@cs.dal.ca (Bill Silvert) (05/02/91)

I was reminded of a problem I sometimes have when I read:
>
>>How about using the console keyboard in a session telneted to the VMS vax...

I'm using the console via cu at 9600 baud to an old Unix system we have,
and I used infocmp to generate termcap and terminfo files for it.  But
frequently when running vi, especially when the cursor is jumping around
(for example, at the beginning of a line I type "A"), large blocks of
text get erased.  Not really erased, I get them back with ^L, but they
vanish from the screen.  Any hints on how to avoid this?
-- 
William Silvert, Habitat Ecology Division, Bedford Inst. of Oceanography
P. O. Box 1006, Dartmouth, Nova Scotia, CANADA B2Y 4A2.  Tel. (902)426-1577
UUCP=..!{uunet|watmath}!dalcs!biome!silvert
BITNET=silvert%biome%dalcs@dalac	InterNet=silvert%biome@cs.dal.ca