delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/05/13:18:23

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3A2D3008.A39225CE@mmm.com>
Date: Tue, 05 Dec 2000 12:12:24 -0600
From: Michael Bresnahan <mbresnahan1 AT mmm DOT com>
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: sjc AT qx DOT net, cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Cygwin termcap entry for SunOS
References: <200012042226 DOT RAA01870 AT darkstar DOT qx DOT net>

It's been 6 years since I did any curses programing, but I vaguely remember writing a simple tool to capture the exact output of the application (all the escape characters) and then comparing it to the termcap entries.  I also think that the various abbreviations in the termcap and terminfo files are documented somewhere and such documentation would probably be a huge help.  Sorry, I can't be of more help.  Luckily I don't have to use
cygwin as a terminal emulator because I'm using RelectionX.

Steven Curtis wrote:

> Thanks, but...
>
> Yet another entry that is close, but no cigar.  Cursoring around a vi session shows that this terminal entry doesn't handle tabs very well, and still has problems misplacing characters on the screen.  They are initially painted in one place, but moving the cursor over them reveals a different character in that location.  Don't know if these are significant, but tic didn't understand the "meml" or "memu" terminfo elements.
>
> Any one know how to fix any of the termcap entries below to work correctly with the latest cygwin terminal?
>
> Better yet, if I set my TERM env var to "ansi" and vi doesn't paint the screen correctly, where is the malfunction most likely to be.  On the SunOS side, or on the cygwin side?  In other words, how does one troubleshoot this sort of problem?  How can I find out what the termcap values are supposed to be?
>
> Steve
>
> >
> > From: Michael Bresnahan <mbresnahan1 AT mmm DOT com>
> > Date: 2000/12/04 Mon PM 04:02:43 EST
> > To: sjc AT qx DOT net
> > Subject: Re: Cygwin termcap entry for SunOS
> >
> > For what its worth.  I have not experienced your problem on HPUX 11.  I set TERM to ansi.  I do however experience a similar problem with tcsh in emacs mode.  Here are the terminfo settings for ansi on HPUX 11.
> >
> > ansi|generic ansi standard terminal,
> >         am, xon,
> >         cols#80, lines#24,
> >         bel=^G, cr=\r, clear=\E[H\E[J, el=\E[K,
> >         ed=\E[J, cup=\E[%i%p1%d;%p2%dH, cud1=\n, home=\E[H,
> >         cub1=\b, cuf1=\E[C, cuu1=\E[A, dch1=\E[P,
> >         dl1=\E[M, blink=\E[5m, bold=\E[1m, smir=\E[4h,
> >         invis=\E[8m, rev=\E[7m, smso=\E[7m, smul=\E[4m,
> >         sgr0=\E[0m, rmir=\E[4l, rmso=\E[m, rmul=\E[m,
> >         ich1=\E[@, il1=\E[L, kbs=\b, kcud1=\E[B,
> >         khome=\E[H, kcub1=\E[D, kcuf1=\E[C, kcuu1=\E[A,
> >         ich=\E[%p1%d@, rep=%p1%c\E[%p2%{1}%-%db, ind=\n, sgr=\E[0%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
> >         ht=\t, meml=\E[>2h, memu=\E[>2l,
> >
> > Steven Curtis wrote:
> >
> > > 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 AT sourceware DOT cygnus DOT com
> >
> >
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019