delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/08/11:22:06

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
X-Authentication-Warning: testprod.com: Host dyn1-tnt13-52.detroit.mi.ameritech.net [199.179.188.52] claimed to be btown1
From: "Bradley A. Town" <townba AT pobox DOT com>
To: <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: terminfo/termcap entry (was Re: [PATCH] fhandler_console.cc)
Date: Thu, 8 Jun 2000 11:15:34 -0400
Message-ID: <FEEGLKLAJFLHOLFDEPDJOENFCAAA.townba@pobox.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700

cgf> After that, I will get to Bradley's changes.  I'm a little leery of
cgf> terminfo -> termcap translated changes since I've had problems with that
cgf> before.

After hosing programs with my termcap file created from my terminfo file,
I'll be more careful with such translations.  I just can't bear the thought
of maintaining both ...  :)

Below is a table detailing the differences between Earnie's terminfo entry he
posted the other day and the one that I now use.  The changes necessary to
take advantage of my fhandler_console.cc patch are at the beginning.

Name    Earnie          Brad            Explanation
===================================================
 (Display attributes [these use my patch]:)
blink   \E[5m           (none)          [Blink] Not impl. in my patch (2)
dim     \E[2m           (none)          [Dim] Not impl. in my patch (2)
ncv     3               0 (not set)     [No color video] Not needed with my patch
rmso    \E[m            \E[27m          [Exit standout mode] Uses my patch (3)
rmul    \E[m            \E[24m          [Exit underline mode] Uses my patch (3)
sgr:
 Earnie: \E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;12%;m
 Brad: \E[0%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p6%t;1%;%?%p7%t;8%;m
 Mine leaves out the font change, blink, dim, protect, and alt charset modes
 so programs know what they can and can't do.

 (Not needed:)
cols    80              (none)          [Columns] Not always correct
lines   24              (none)          [Lines] Not always correct

 (Things not implemented or broken in Cygwin:)
cnorm   \E[?25h         (none)          [Make cursor normal] Not impl. in Cygwin
eo      (set)           (not set)       [Erase overstrike with blank]
flash   \E[?5h\E[?5l$<200/>     (none)  [Flash] Not impl. in Cygwin
kcbt    \E[Z            (none)          [Backtab key] Not impl. in Cygwin
khome   \E[1~, \E[H     \E[1~           [Home key] Earnie has two -- I think \E[H is wrong
kNXT    \E[6$           (none)          [Shifted next key] Not impl. in Cygwin
kPRV    \E[5$           (none)          [Shifted prev key] Not impl. in Cygwin
mir     (set)           (not set)       [Move in insert mode] `tack' test fails
rmacs   \E[10m          (none)          [End alt charset] Not impl. in Cygwin
rmir    \E[4l           (none)          [Exit insert mode] Not impl. in Cygwin
rs1     \Ec\E]R         \Ec             [Reset string] \E]R means nothing to Cygwin (1)
sgr0    \E[0;10m        \E[m            [Reset display mode] SGR mode 10 not impl. in Cygwin
smacs   \E[12m, \E[11m  (none)          [Start alt charset] Not impl. in Cygwin
smir    \E[4h           (none)          [Enter insert mode] Not impl. in Cygwin
tbc     \E[2g           (none)          [Clear tab stops] Not impl. in Cygwin

 (Added capabilities:)
csr     (none)          \E[%i%p1%d;%p2%dr   [Change scroll region]
ka1     (none)          \E[1~           [Upper left key]
ka3     (none)          \E[5~           [Upper right key]
kc1     (none)          \E[4~           [Lower left key]
kc3     (none)          \E[6~           [Lower right key]

 (Speed:)
clear   \E[H\E[J        \E[2J           [Clear screen] \E[2J is faster
cub1    \E[D            ^H              [Cursor back] ^H is faster

 (I leave out the following to make it easier to translate the terminfo
  file to termcap.)
cbt     \E[Z            (none)          [Backtab]
dch1    \E[P            (none)          [Delete one character]
dl1     \E[M            (none)          [Delete one line]
hpa     \E[%i%p1%dG     (none)          [Horiz. pos. abs.]
ich1    \E[@            (none)          [Insert one char]
il1     \E[L            (none)          [Insert one line]
nel     ^M^J            (none)          [Newline]
vpa     \E[%i%p1%dd     (none)          [Vert. pos. abs.]

==========
Footnotes:
(1) \E[R means nothing as well.  He could mean ECMA-48's CPR, but that
    isn't implemented in Cygwin.
(2) Not implemented very usefully in stock Cygwin.
(3) Some programs incorrectly assume that turning off some modes reset
    everything.  If you want this behavior, keep these set to \E[m.

Brad Town


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