bug-ncurses
[Top][All Lists]
Advanced

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

Re: Termite's terminfo


From: IFo Hancroft
Subject: Re: Termite's terminfo
Date: Tue, 8 Oct 2019 13:10:42 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1

Hey!

By functionality, I didn't mean color. I may be missunderstanding some things about how terminal functionality is specified and used so what I was saying may be wrong. As for $TERM, I am not sure what caused it. I am sure it's not hard coded check on $TERM in ncurses, I am just saying that I did change my $TERM var as a fast way to start using termite.terminfo as opposed to xterm-termite.terminfo in order to test it. The functionality in question I was losing during that was the dynamic titles in the terminal. I did still have Vim for example, change the title (as far as I can remember) but things like sshing into a server stopped showing the new host in the title and Weechat stopped changing the title. I will recompile Termite in the next couple of days, making it actually present itself as termite, so I don't have to change $TERM in .bashrc and test again.

P.S. What do you think would be a good reading material so I can better understand what different terminal capabilities are available (in general, not on a specific terminal), how are they determined and how is each described, so I can better understand creating a terminal's terminfo

On 10/8/19 1:10 AM, Thomas Dickey wrote:
On Mon, Oct 07, 2019 at 12:42:18PM +0300, IFo Hancroft wrote:
I have just found something interesting. If I change my $TERM to termite as
opposed to xterm-termite, I lose functionality. I haven't

"functionality" wasn't mentioned.

Perhaps you're seeing this in GNU ls, which uses its own guess about
color based on $TERM.   On the machine I'm using at the moment,
"dircolors -p" asserts that these do color:

TERM Eterm
TERM ansi
TERM *color*
TERM con[0-9]*x[0-9]*
TERM cons25
TERM console
TERM cygwin
TERM dtterm
TERM gnome
TERM hurd
TERM jfbterm
TERM konsole
TERM kterm
TERM linux
TERM linux-c
TERM mlterm
TERM putty
TERM rxvt*
TERM screen*
TERM st
TERM terminator
TERM tmux*
TERM vt100
TERM xterm*

vt100's never did color.

The "gnome" entry there is derived from ncurses, but rather old.
I deprecated it in 2010:

# 2010-11-20
#       * make "vte" the principal entry defining "gnome", since GNOME terminal
#         is merely one of several terminals whose behavior is provided by this
#         library -TD

Hardcoding checks on $TERM never was a good idea, and it's not done here :-)

To put it into perspective, ncurses' terminal data has...

      305 entries with 8 colors (72%)
        1 entries with 15 colors (0%)
       37 entries with 16 colors (9%)
        6 entries with 52 colors (1%)
        9 entries with 64 colors (2%)
        6 entries with 88 colors (1%)
       47 entries with 256 colors (11%)
        1 entries with 512 colors (0%)
        1 entries with 4096 colors (0%)
       13 entries with 16777216 colors (3%)
      426 entries with colors

compiled/recompiled termite to make it present itself as termite, so it may
be due to that and not the terminfo file but maybe there is no need to
change the terminfo file until I test further.

On 10/7/19 7:47 AM, IFo Hancroft wrote:
I have just checked the branches and versions.
Termite does use a recent VTE version (I believe it is even up to date
with VTE's current development version, not just the latest stable),
though VTE's versions are confusing (at least for me) with being called
VTE3, while being named and installed as VTE 2.91 while the version is
actually 0.48.3 according to https://developer.gnome.org/vte/

Anyway, my point is, Termite's terminfo can get updated to just:
termite|VTE-based terminal,
use=vte,

Best Regards,
IFo Hancroft

_______________________________________________
Bug-ncurses mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-ncurses

_______________________________________________
Bug-ncurses mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-ncurses




reply via email to

[Prev in Thread] Current Thread [Next in Thread]