Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Enhanced ANSI Support in Version 36

Jun
1,092
48
First, it would be helpful if the "Whats New" would state that the enhanced ANSI codes work only in a ConPTY console.

Second, code for italics (^e[3m) does not work for me.

Third, what are the ANSI sequences for superscript and subscript?
 
Third, what are the ANSI sequences for superscript and subscript?
Pretty sure they don't exist. There are many subscript/superscript characters in the range 0x2070 ~ 0x209C (and probably others in various places).

1775487448932.webp
 
Italics are fixed in build 18.

^e[73m - superscript
^e[74m - subscript
^e[75m - reset superscript & subscript

Note that there isn't a superscript or subscript font per se - what TCMD does when it gets those escape sequences is shrink & shift the current font. up or down.
 
Should they work in build 17? They do nothing here.

Superscript and subscript require PSEUDOCONSOLE_PASSTHROUGH_MODE, which only exists in the latest Windows builds (and is still undocumented). Otherwise, ConPTY's conhost consumes the escape sequences (because it doesn't recognize them) and does not forward them on to TCMD.

Hopefully Microsoft will eventually update conhost to recognize more ANSI sequences.
 
Back
Top