xtermjs/xterm.js

OSC 50 (get/set font) VT sequence

Aberta

#3.367 aberto em 11 de jun. de 2021

 (12 comentários) (0 reação) (0 responsável)TypeScript (1.574 forks)batch import
help wantedtype/enhancement

Métricas do repositório

Stars
 (16.196 estrelas)
Métricas de merge de PR
 (Mesclagem média 2d 10h) (16 fundiu PRs em 30d)

Description

As per ctlseqs.txt from xterm, OSC 50 is used to query/set the use font.

I was actually looking into neofetch and how it is detecting the font being used, and I think they all got it wrong (fishing the font by looking into the config file of the detected terminal). The proper way to communicate with the TE is to use the PTY, so through some VT sequence.

There is already OSC 50 and at least xterm and mintty (and mine) are supporting that. I'd wonder if you have interest in supporting that too (at least the getter part).

Many thanks, Christian.

Guia do colaborador