alacritty / vte

Parser for virtual terminal emulators
https://docs.rs/vte/
Apache License 2.0
242 stars 56 forks source link

Add support for XTGETTCAP #98

Open kchibisov opened 1 year ago

kchibisov commented 1 year ago

How it works is available at https://invisible-island.net/xterm/ctlseqs/ctlseqs.html .

This is used to query for terminfo features and not relying on the actual files. It's supported by notcursors, most modern terms, etc. It could be sort of good when you ssh into system without TERM info you have and it could help terminals not having their terminfo spread to work with at least modern toolkits.

chrisduerr commented 1 year ago

Not a fan of this at all. Why do you want this?

kchibisov commented 1 year ago

mostly because it started to get used in toolkits.

I'd at least like to look into what it is a bit.

chrisduerr commented 1 year ago

mostly because it started to get used in toolkits.

Which one?

kchibisov commented 1 year ago

@chrisduerr I think I mentioned? it's notcurses, some recent go toolkits, etc. It's also present in basically any active terminal.

roland-5 commented 4 months ago

From my experience, the currently released Neovim 0.10 uses XTGETTCAP as the escape sequence to detect OSC 52 support automatically and thus clipboard function within itself. This is very useful for me when I want to copy code from one remote machine and quickly paste it into another to check something.