xtermjs/xterm.js

OSC 50 (get/set font) VT sequence

開放

#3,367 建立於 2021年6月11日

 (12 則留言) (0 個反應) (0 位負責人)TypeScript (1,574 個分叉)batch import
help wantedtype/enhancement

倉庫指標

星標
 (16,196 顆星)
PR 合併指標
 (平均合併 2天 10小時) (30 天內合併 16 個 PR)

描述

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.

貢獻者指南