delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/22/02:38:49

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
Date: Wed, 22 Nov 2000 09:37:34 +0200
Message-Id: <200011220737.JAA08207@linux.>
From: "Ehud Karni" <ehud AT unix DOT simonwiesel DOT co DOT il>
To: "Charles Wilson" <cwilson AT ece DOT gatech DOT edu>, cygwin AT sources DOT redhat DOT com
Subject: cygwin terminal terminfo description
Organization: Simon & Wiesel Insurance agency
Reply-to: ehud AT unix DOT simonwiesel DOT co DOT il
X-Mailer: Emacs 20.7.1 rmail (send-msg 1.104)
MIME-Version: 1.0

I have tested the cygwin terminfo description. I did find the source so
I created one using infocmp. I found, what I think, bug and omissions.
I checked the description by compiling it (tic) on Linux and doing
various tests (Emacs and some that I have written myself). The tests
were done by using telnet (or rlogin, both worked fine) to the Linux
box, without changing the negotiated terminal description. The comments
in square brackets are from the terminfo man page.

I had to drop the boolean xenl [ eat_newline_glitch, newline ignored
after 80 cols (concept) ], it was causing Emacs (and my tests) to
misalign and scroll off the last line (I assume an extra line feed was
sent). Dropping xenl solved this.

My test needed the cud1, cuf1, and cuu1 string capabilities which were
missing. I assumed that the ANSI strings will work, so I added the
followings:

   cub=\E[%p1%dD, [ parm_left_cursor, move left #1 characters (P*) ]
   cub1=\E[D,     [ cursor_left, move left one space ]
   cud=\E[%p1%dB, [ parm_down_cursor, down #1 lines (P*) ]
   cud1=\E[B,     [ cursor_down, down one line ]
   cuf=\E[%p1%dC, [ parm_right_cursor, move right #1 characters (P*) ]
   cuf1=\E[C,     [ cursor_right, non-destructive space
                                  (move right one space) ]
   cuu=\E[%p1%dA, [ parm_up_cursor, up #1 lines (P*) ]
   cuu1=\E[A,     [ cursor_up, up one line ]

This worked fine for me, any corrections to that ?

In my tests I also test blinking which is not defined. I tried to add
   blink=\E[5m,   [ enter_blink_mode ] 
(this works on several ANSI terminals, including Kermit) but it does
not work on cygwin. Is there a blinking option for cygwin ?


Another unrelated question. I compared the termcap of Linux and that
of Cygwin. The Cygwin termcap is much shorter (many terminals are not
included) and some of the terminal descriptions are different. Why is
that ?


Ehud.


-- 
 @@@@@@ @@@ @@@@@@ @    @   Ehud Karni  Simon & Wiesel  Insurance agency
     @    @      @  @@  @   Tel: +972-3-6212-757    Fax: +972-3-6292-544
     @    @ @    @ @  @@    (USA)  Fax  and  voice  mail:  1-815-5509341
     @    @ @    @ @    @        Better     Safe     Than     Sorry
 http://www.simonwiesel.co.il    mailto:ehud AT unix DOT simonwiesel DOT co DOT il

--
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