Odi's astoundingly incomplete notes
New entries | CodeCygwin terminal to Solaris / SunOS
Connecting to a Solaris machine, my Cgywin terminal seems unsupported:
You can enter the escape sequence by pressing Ctrl-V and then the desired key (like PageDown). If the command is also an escape sequence (like Ctrl-F), then also just press Ctrl-V before hitting it. So you should get something like that:
top: no termcap entry for a `cygwin' terminalNote: Solaris' termcap uses terminfo really. No termcap file is ever really read! I worked around it by
tar
'ing the terminfo db from Cygwin and uploading it to the home directory of that user. First tar and upload Cygwin's terminfo db:cd /usr/share/terminfo tar czf terminfo.tgz * scp terminfo.tgz user@solaris: rm terminfo.tgzThen on the remote machine unpack it to the ~/.terminfo directory:
gunzip terminfo.tgz mkdir .terminfo cd .terminfo tar xf ../terminfo.tar # fix a symlink rm terminfo ln -s /usr/share/lib/terminfo cd .. rm terminfo.tar export TERMINFO=${HOME}/.terminfoNow edit
.bash_profile
to set the TERMINFO variable on login:# teach Solaris what my terminal isNow the only thing missing, is a useable vi configuration. On Solaris this is the really old Unix vi, and not vim. So its config file is
export TERMINFO=${HOME}/.terminfo
~/.exrc
. Here we need key mappings for Home, End, PageUp, PageDown, Delete and maybe even the cursor keys. For every key put a mapping in the file like:map <Escape sequence> <command>
You can enter the escape sequence by pressing Ctrl-V and then the desired key (like PageDown). If the command is also an escape sequence (like Ctrl-F), then also just press Ctrl-V before hitting it. So you should get something like that:
set showmode " Home map ^[[1~ 0 " End map ^[[4~ $ " PgUp map ^[[5~ ^B " PgDown map ^[[6~ ^F " Del map ^[[3~ x " Down map ^[[B j " Up map ^[[A k " Left map ^[[D h " Right map ^[[C l
TERM=xterm; export TERM
/Mads
The xterm solution did not work, nor does vt100 or vt52.
Ed