bug-ncurses
[Top][All Lists]
Advanced

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

Re: New terminfo: xterm-ghostty


From: Thomas Dickey
Subject: Re: New terminfo: xterm-ghostty
Date: Fri, 27 Dec 2024 12:48:57 -0500

On Fri, Dec 27, 2024 at 01:00:34PM -0600, G. Branden Robinson wrote:
> At 2024-12-27T15:57:40+0300, Aptivi CEO wrote:
> > A new terminal emulator has just surfaced: ghostty. You can find its
> > website here: https://ghostty.org. I've managed to obtain the compiled
> > xterm-ghostty terminfo file here.
> 
> Given that this project is independent of xterm, why would the database
> entry be named "xterm-ghostty" and not simply "ghostty"?

The developers did that to fool vim into believing it's a variant of xterm:

        /// This will be used to set the `TERM` environment variable.
        /// HACK: We set this with an `xterm` prefix because vim uses that to 
enable key
        /// protocols (specifically this will enable `modifyOtherKeys`), among 
other
        /// features. An option exists in vim to modify this: `:set
        /// keyprotocol=ghostty:kitty`, however a bug in the implementation 
prevents it
        /// from working properly. https://github.com/vim/vim/pull/13211 fixes 
this.
        term: []const u8 = "xterm-ghostty",

however, that was addressed over a year ago, and it's unlikely that there are
any users of vim who both care about the feature and will use ghostty.

grep'ing through the source code shows me a lot of other things to dispute.

(I took a quick try at vttest on arch, but ghostty hung - spits out a lot
of error messages - ymmv)

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

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