microsoft/Terminal

Support fonts and fonts attributes through inline escape sequences like mintty and vte52

Offen

#6.779 geöffnet am 03.07.2020

 (12 Kommentare) (3 Reaktionen) (0 zugewiesene Personen)C++ (9.275 Forks)batch import
Area-FontsArea-VTHelp WantedIssue-TaskProduct-Terminal

Repository-Metriken

Stars
 (103.173 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 27T 19h) (24 gemergte PRs in 30 T)

Beschreibung

Escape sequences to set fonts and their attributes are ignored, instead they are displayed as raw

Terminals support escape sequences to alter the fonts. Windows Terminal at the moment only support basic colors and reverse colors

This is linked to #109 #2916 #5461 #5462 #6703 and #6205 as currently most of the VTE52 font attributes are not supported.

Full support can be tested with: https://github.com/csdvrx/sixel-testsuite/ansi-vte52.sh

Expected output: https://github.com/csdvrx/sixel-testsuite/blob/master/test-passed-part1.jpg

It would be desirable to support all mintty font attributes, including support for alternative fonts, using ECMA-48 SGR codes. This would be linked to #1163 for usecases like CJK.

Mintty patch implementing this is on https://github.com/mintty/mintty/commit/1250829806d3da2f05b3207183b190747d2cc127

This allows sequences like:

echo "\e[12mVery thin font\e[0m"

image

Contributor Guide