xtermjs/xterm.js

OSC 50 (get/set font) VT sequence

オープン

#3,367 opened on 2021/06/11

 (12 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (1,574 件のフォーク)batch import
help wantedtype/enhancement

Repository metrics

Stars
 (16,196 個のスター)
PR merge metrics
 (平均マージ 2d 10h) (30d で 16 merged PRs)

説明

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.

コントリビューターガイド