Replies: 3 comments 8 replies
-
Most of the time when you're working with terminal colors, you're using a palette-based system. For example, when you do The default colors have an additional level of indirection on top of that. They have palette numbers assigned to them, but those numbers can change (internally we refer to those assignments as color aliases). In the legacy console, the default background color alias was assigned to palette entry 0, and the default foreground color to palette entry 7, but you can change those assignments in the properties dialog. At some point in time the console got an option to set the foreground and background colors separately from the basic 16 colors (this is on the Terminal tab of the properties dialog) But what's happening there is we're just pointing the foreground and background aliases to two special entries at the end of the color table (technically 261 and 262). And these are the aliases that Windows Terminal uses by default. Now when you do
In |
Beta Was this translation helpful? Give feedback.
-
Broadly speaking, this will be true of all bugs we fix and all new features we implement. They will remain broken or unimplemented on Windows 10, and will be fixed or implemented in OpenConsole.exe and Windows Terminal. |
Beta Was this translation helpful? Give feedback.
-
I don't know! If you're expecting those programming for the Windows console to follow the "ecosystem roadmap" I suppose the roadmap should be up-to-date (and keeping it so not done on a volunteer basis). What's the alternative ... scrounging around in DEC and XTERM (et al.) docs and then experimenting to see if something is actually implemented? That's precisely how I found these: ESC[?1049h (enable alternate buffer) and ESC[?1049l (disable alternate buffer). They are mentioned here but only in the examples. A question: Not knowing how an XTERM works, is the alternate buffer meant to be static in any sense (disable/(re)enable and find it intact)? Right next to those was ESC[?47h/l (save/restore screen), apparently not implemented. |
Beta Was this translation helpful? Give feedback.
-
Will they be documented, maybe here?
With specific regard to OSC10 and OSC11 (defaultForeground and defaultBackground) ... How are they used in general ... by ESC[0m? ... by ESC[39m? ... by ESC[49m ... any others? If they're not mentioned in HKCU\Console (or a subkey) do (and how do) they get default values?
Thanks!
An observation (which I might have made before): "chaining" OSC 10, 11, and 12 (all three inside one OSC/ST) doesn't work with the current "stock" Windows 10 conhost.exe and does work with the current openconsole.exe packaged with Windows Terminal.
Beta Was this translation helpful? Give feedback.
All reactions