This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Cygwin termcap entry for SunOS


Hey all:

I'm really interested in getting a complete and correct termcap entry for a cygwin developed.  I've been trying to telnet to a Sun machine and have a working terminal, but have been unsuccessful so far.  I've emailed this list before and have received some suggestions that have gotten me closer but none have worked yet.  I'm going to get really specific now.

The following termcap entry based on an ObenBSD box does everything except for one noticeable quirk.  When you enter insert mode in a vi session, typing characters over-writes existing characters until ESC is pressed, at which point the over-written characters are shifted to the right and the line becomes correct.

# Reconstructed via infocmp from file: 
# /usr/share/misc/terminfo
cygwin|ansi emulation for cygwin32:\
        :am:bs:mi:ms:xo:\
        :co#80:li#25:\
        :ae=\E[10m:as=\E[11m:ce=\E[k:\
        :cl=\E[2J:cm=\E[%i%d;%dH:\
        :do=\E[B:ho=\E[H:is=\E[m\E[?7h:\
        :k1=\E[[A:k2=\E[[B:k3=\E[[C:\
        :k4=\E[[D:k5=\E[[E:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
        :k9=\E[20~:\
        :kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kd=^J:kh=^^:\
        :kl=^H:kr=^L:ku=^K:\
        :le=^H:mb=\E[5m:md=\E[1m:me=\E[0;10m:\
        :mr=\E[7m:nd=\E[C:rc=\E[u:\
        :sa=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m:\
        :sc=\E[s:se=\E[m:so=\E[7m:ue=\E[m:up=\E[A:us=\E[4m:

Originally the "sa" entry was "..sa" but captoinfo on the Sun box complained so I removed the "..".

The following entry based on a Linux machine exhibits the correct insertion behavior but screws up when you accidentally cursor off the end of a line.

# Reconstructed via infocmp from file:
# /usr/share/terminfo/c/cygwin
cygwin|ansi emulation for Cygwin:\
        :am:eo:mi:ms:xo:\
        :co#80:it#8:li#24:\
        :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
        :K2=\E[G:LE=\E[%dD:RI=\E[%dC:UP=\E[%A:ae=\E10m:al=\E[L:\
        :as=\E[11m:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
        :cm=\E[%i%d;%dH:cr=^M:ct=\E[2g:dc=\E[P:dl=\E[M:do=\E[B:\
        :ei=\E[4l:ho=\E[H:ic=\E[@:im=\E[4h:k1=\E[[A:k2=\E[[B:\
        :k3=\E[[C:k4=\E[[D:k5=\E[[E:k6=\E[17~:k7=\E18~:k8=\E[19~:\
        :k9=\E[20~:kD=\E[3~:kI=\E[2~:kN=\E6~:kP=\E5~:kb=^H:\
        :kd=\E[B:kh=\E[1~:kl=\E[D:kr=\EC:ku=\EA:le=\ED:md=\E[1m:\
        :me=\E[0;10m:mh=\E2m:mr=\E7m:nd=\EC:nw=^M^J:rc=\E8:\
        :sa=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m:\
        :sc=\E7:se=\E27m:sf=^J:so=\E7m:sr=\EM:st=\EH:ta=^I:\
        :ue=\E[24m:up=\E[A:us=\E[4m:vb=200\E[?5h\E[?5l:\
        :ve=\E[?25h:

I tried copying the im (insert mode) ic (insert character) and ei (end insert mode) entries from the Linux entry to the OpenBSD entry, but after compilation, the vi session sort-of inserts correctly.  It shifts characters to the right when in insert mode, but screws up the line when ESC is pressed.  Can anyone provide any insight?  Current versions are cygwin 1.1.6-1; bash 2.04-4; & ncurses 5.2-2.  Uname -a on the Sun box yields:

SunOS engsol10 5.5 Generic_103093-27 sun4m sparc SUNW,SPARCstation-5

Thanks for any help.
Steve


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]