-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates to ms-terminal terminal type in terminfo to 1.4 from 0.2 #8303
Comments
This will also help with the representation of the Windows Console in terminfo. Since conhost (here, OpenConsole) is our front line for VT support[1], everything supported by Terminal is in the fullness of time supported by conhost. There'll be some interesting fallout from this: conhost is versioned with Windows, and each version supports a different and ever-growing set of control sequences. Terminal is versioned outside of Windows, and is always going to be "the latest conhost plus some", but in either case [1] because of ConPTY |
A parallel effort is required to update the "Console Virtual Terminal Sequences" document with robust version documentation. I feel like these efforts should go hand-in-hand and, perhaps, one could be programmatically derived from the other. 🤔 |
The way
The flaw here is that these ranges overlap, and this prevents the use of the first 256 rgb colors (anything with red=0 and green=0) In addition, xterm-direct256 does not allow redefining colors (the Emacs (and possibly other programs) will use the nonstandard capabilities Another note |
My best guess for a proper terminfo entry at the moment would be something like this:
Keep in mind that terminfo does not represent the full capabilities of a terminal, so being compatible with xterm-256color (which is pretty reasonable, and you're already very close, I think) is not the same as being compatible with all of the features xterm supports. There are likely a few control sequences that are currently broken (and I think it's better to fix these, rather than altering the terminfo entry to work around them), but I can't test properly right now because my WSL installation was broken by a windows update a while ago. After thinking about it more, I don't think the xterm-direct capabilities are worth adding. I don't know of any program that uses them (except emacs, but it doesn't properly account for the overlap between rgb and indexed colors, so it's better to use setf24/setb24 for that) |
That's been my point of view since always |
FYI @12Me21 the |
In #8291 it was noted that the
ms-terminal
record in the terminfo database dates from version 0.2 of Windows Terminal. We are now on version 1.4. So let's construct a list of concrete and specific amendments to the 0.2ms-terminal
record that match the current behaviour of Windows Terminal.Here's what I can see so far:
Se=\E[2 q
andSs=\E[%p1%d q
— Windows Terminal supports DECSCUSR (dynamic cursorShape for shell vi mode #4734)xterm+256setaf
— Windows Terminal supports indexed colour. Perhaps insteadxterm+indirect
which also contains theRGB
capability, because Windows Terminal supports direct colour too, although that does change the semantics of colours 8 to 255.Furthermore:
ansi+rep
should be alright now.rmir@
andsmir@
are needed.XM
? (Incorrect Shift / Meta / Control bits set in xterm mouse mode #8291)Note that this is not #2958 . This is not about Microsoft creating its own terminfo record, but is rather about what can be passed along to Thomas Dickey for updating the Dickey terminfo database from Windows Terminal 0.2 to 1.4.
The text was updated successfully, but these errors were encountered: