Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!rpi!pateros From: pateros@ecse.rpi.edu (Chuck Pateros) Newsgroups: comp.unix.amiga Subject: Re: Console Windows Summary: What I finally did Message-ID: <_*|&|'-@rpi.edu> Date: 14 Feb 91 14:20:27 GMT References: Sender: Chuck Pateros Organization: Rensselaer Polytechnic Institute, Troy NY Lines: 45 Nntp-Posting-Host: maxwell.ecse.rpi.edu Thanks to everyone, especially Scott Hess, for help on my Amiga - Sun problem. The problem was that when I remotely logged in to the Sun from an Amiga console window, I couldn't use my arrow keys in vi. I did the following change to /etc/termcap on the Sun: Old /etc/termcap entry: # rough draft of Amiga termcap by Mike Meyer #AA|amiga|Amiga ANSI:\ # :co#80:li#25:am:do=\E[B:ce=\E[K:cd=\E[J:\ # :cl=\E[H\E[J:ku=\E[A:kd=\E[B:kl=\E[C:kr=\E[D:kb=^H:\ # :al=\E[L:dl=\E[M:le=^H:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\ # :ce=\E[K:ho=\E[H:dc=\E[P:ic=\E[@:\ # :so=\E[2m:se=\E[m:us=\E[4m:ue=\E[m:mr=\E[7m:mb=\E[7;2m:me=\E[m: New /etc/termcap entry: AA|amiga|Amiga ANSI:\ :co#80:li#50:am:do=\E[B:ce=\E[K:cd=\E[J:\ :cl=\E[H\E[J:ku=^[A:kd=^[B:kr=^[C:kl=^[D:kb=^H:\ :al=\E[L:dl=\E[M:le=^H:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\ :ce=\E[K:ho=\E[H:dc=\E[P:ic=\E[@:\ :so=\E[2m:se=\E[m:us=\E[4m:ue=\E[m:mr=\E[7m:mb=\E[7;2m:me=\E[m: The line number variable (li#25) has changed to 50 because of the (nice!) size of the console window, and I changed the ku,kd,kr and kl variables from \E[A, \E[B, \E[D and \E[C to ^[A, ^[B, ^[C and ^[D respectively. Note that besides the change from \E to ^, I also needed to switch the letters for kr and kl. I don't know where we originally even got this termcap entry. I tried ftp'ing the /etc/termcap entry from the Amiga to the Sun, but that resulted in bizarre terminal behavior. I was going to try changing the other \E's to ^'s, but now the screen seems to work fine ... Thanks again for all the help, and what the hell is an xtermm, and why don't other machines seem to like it?! :-) Chuck pateros@ecse.rpi.edu