NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/58034: terminfo: tmux-direct different from ncurses version



The following reply was made to PR lib/58034; it has been noted by GNATS.

From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: lib/58034: terminfo: tmux-direct different from ncurses version
Date: Wed, 13 Mar 2024 14:34:26 +0300

 On Wed, Mar 13, 2024 at 10:45:02 +0000, Robert Elz wrote:
 > Date: Wed, 13 Mar 2024 10:45:02 +0000 (UTC)
 > From: Robert Elz <kre%munnari.OZ.AU@localhost>
 > Subject: Re: lib/58034: terminfo: tmux-direct different from ncurses version
 > Newsgroups: gmane.os.netbsd.bugs
 > To: lib-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
 >  netbsd-bugs%netbsd.org@localhost, Thomas Klausner <wiz%NetBSD.org@localhost>
 > Reply-To: gnats-bugs%netbsd.org@localhost
 > 
 > The following reply was made to PR lib/58034; it has been noted by GNATS.
 > 
 > From: Robert Elz <kre%munnari.OZ.AU@localhost>
 > To: gnats-bugs%netbsd.org@localhost
 > Cc: 
 > Subject: Re: lib/58034: terminfo: tmux-direct different from ncurses version
 > Date: Wed, 13 Mar 2024 17:41:57 +0700
 > 
 >      Date:        Wed, 13 Mar 2024 09:50:00 +0000 (UTC)
 >      From:        Thomas Klausner <wiz%NetBSD.org@localhost>
 >      Message-ID:  <20240313095000.86C5C1A9247%mollari.NetBSD.org@localhost>
 >  
 >    | And since it's the second entry in the definition, this should win,
 >  
 >  It has been a long time, but my memory of termcap, and so probably
 >  terminfo, is that that is backwards.
 >  
 >  That's what allows 'continuation' (tc=) to work, define
 >  whatever makes this entry first, then add everything from
 >  another entry, and the specific entries (coming first) are
 >  used in preference to later ones which belong to the other,
 >  similar, terminal.
 
 Right, but the "second" above is a bit misleading, as we naturally
 tend to infer "first" as its target, while in fact it's "third" (the
 use=tmux entry that comes later and defines 8 colors).
 
 A.1.16 Similar Terminals
 
   If there are two similar terminals, one can be defined as being just
   like the other with certain exceptions. The string capability use can
   be given with the name of the similar terminal. The capabilities given
   before use override those in the terminal type invoked by use. A
   capability can be canceled by placing capability-name@ prior to the
   appearance of the string capability use.
 
 In the thread that led to this PR martin@ pointed out this was broken
 in usr.bin/tic/tic.c revision 1.33
 
 date: 2020-03-27 16:11:57 +0100;  author: christos;  state: Exp;  lines: +21 -17;  commitid: 2Q6C4aNTDvrFf32C;
 
 -uwe
 


Home | Main Index | Thread Index | Old Index