You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reacted by Axel Fontaine, Dominik Madarász, Wiktor Kwapisiewicz, Mustafa Mohamad, Dylan Wang, SooYou, Ben Buchanan (200ok), mzvast, Brendan Roy, Vu Tran and 81 more
Reacted by Ed, Danilo Gasques, Jonas Wechsler, Min Dong and falfia falfiya
Reacted by Danilo Gasques, Jonas Wechsler, Jeremy Wong, Leigh, Simon Sehayek and falfia falfiya
Thanks for the suggestion! This is actually pretty high on my personal list of requests for the future, however, we weren't able to fit it into the Anniversary Update, though I'd keep my eye out in the future for it.
A coming insider update should have support to at least take the 256-color ANSI sequences and the full RGB ANSI sequences and find the nearest color that's in our 16-color table, and use that to render, which should at least enable applications which use those sequences to not be totally broken.
I'm gonna close this as a dupe of #76, which has more discussion on the subject.
Could we get this reopened as #76 was closed since it was decided that the scope there was not 256 color support but just properly mapping 8-bit colors to the 256-bit range.
It is hard, almost impossible.
Conhost uses a fixed 32-bit-per-cell layout (16 bits for properties and 16 bits for character code), which is a derivative of VGA text mode (yes, the DOS-era video memory layout, 8 bits for properties and 8 bits for color). Modifying it will definitely break compatibility, unless MS want to implement a completely different console API set (and provide a compatibility layer for existing console apps).
Thanks Belleve (@be5invis). It's 2016, breaking compatibility with DOS I don't think will in anyway affect anyone using windows 10, maybe a dozen people. It seems more logical to introduce a new fresh and modern console API that can be used for the next decade and retain the old conhost for legacy purposes.
Certainly, this wouldn't be the first time compatibility has been broken and trying to maintain backwards compatibility for something that old is impressive. I like what they did with IE; tons of stuff depended on IE, but they figured a way around it and introduced Edge, by keeping IE installed but for legacy support.
Considering the large number of devs that use the terminal on a daily basis (esp. linux devs to are married to the terminal), i think this would benefit more people than it would affect. Bash on windows is wonderful, but it's missing some polish and I think this would go a long way.
Mustafa Mohamad (@musm) However, I am talking about NT console API, which is the basis of almost all Windows console applications and many of them are important basic industrial infrastructure, controlling important things like nuclear power plants...
The only possible solution is to create a new console API interface and a bug-to-bug compatibility layer.
I'm going to ref #417 as Maksim Moisiuk (@Maximus5) suggested the fix
"Mike Griese (@zadjii-msft) This issue is not actually forces msft to implement truecolor in conhost. In fact, and instead, topic starter asked you to bypass ANSI to ConEmu, which already supports true-color in console.
Current implementation of console output in WSL prohibits ConEmu from processing any ANSI written by linux applications. That tight integration with kernel(?) is rather bad.
I believe, the issue have to be reopened, ConEmu doesn't limit user to 16-colors palette. And proposed approximation would look awful."
Mustafa Mohamad (@musm)Ben Hillis (@benhillis)Mike Griese (@zadjii-msft)
What if users do not have installed ConEmu?
The true problem is that CONHOST already used all bits of the console buffer. And programs can directly modify it via C/C++ code.
A solution may be to provide another completely different console API (stream-based) and provide a compatibility layer to the existing one (blitting the buffer at 60fps?). Maybe you MS guys should have a serious talk with OSG.
The suggestions is a hacky one I agree, but something hopefully sufficient for the group using conemu in the interim while MS cooks up (hopefully) a longer term fix for the future.
+1 for your idea of a new console API with a compatibility layer is far preferable of course
Mustafa Mohamad (@musm)
Hacky is necessary, because breaking existing console behavior may break important things like nuclear power plants. You definitely do not want that thing to happen.
If you want to connect your terminal to WSL, why do not just use SSH?
@DJviolin I've seen a lot of stuff these days about slackware/arch etc, with X apps etcs, some weird stuff, maybe there's something about Debian on the web, I don't recall whether I've seen something about that or not.
Francisco Lopes (@oblitum) Re. alt distro's: Note that they're unsupported at this time, but do feel free to give them a try: We don't do anything to prevent them from working; we're just focusing all our effort on delivering as solid an experience as possible on Ubuntu at this time.
We're not going to be adding any API for reading the colors back out with 24-bit color, and as far as I know there are no VT sequences for reading the buffer or it's attributes.
That means only powershell and cmd will support this, right? Which means I can't use any external manager for things like tabs, color schemes, tiling. Can you suggest a way to overcome this problem?
Anton Stoychev (@antitoxic) It means only conhost.exe console windows (the default for cmd.exe, powershell.exe, bash.exe, etc) will be able to get this behavior, correct. Changing the API surface is pretty much out of the question for this release.
And to be completely honest, 3rd party consoles aren't really a supported feature. They work because you are able to query the buffer and get it's contents (in lieu of proper pty-like behavior), but it's not something we go out of our way to support.
If a third party console REALLY wanted 24bit color, I'd imagine they might be able to disable VT processing mode of the console window, then parse the VT sequences themself. It's certainly not a great solution, but it might work (I honestly have no idea if it would). It would mean that the source console window and the 3rd party one would have vastly different buffer contents - which I'd imagine would cause a lot of difficulty.
Mike Griese (@zadjii-msft) I'm just a dev that wants a better developer experience. I am the user. I don't want to get involved with command-line specifics to the point I know more about command line terminals, window managers and so on, than what I need to do in the first place.
I really just want tabs, color schemes, shortcuts. In order to be quick, to visually distinguish stuff, to do my job and move on.
Do you have any plans to develop this in further stage? If Microsoft will not, it seems only logical/fair to help others develop it. Colors, fonts, shortcuts, custom clipboard management - these are all fundamentals of good UX. I understand it's out of scope for cmd or powershell but please work together with the only people that do workable terminal GUI in windows. May be a separate group? A collaborative project?
Reacted by Maksim Moisiuk, Mitchell Mebane, Josh Junon, Pedro Pereira Neto, Cristobal Cortes, Douglas Maitelli, Maxim, Colten Jackson, falfia falfiya and Marcus Grant
Reacted by John Haugeland, Carl Patenaude-Poulin and Owen Williams
Anton Stoychev (@antitoxic) I agree with a lot of that. We're developers too, and we want tabs too. But there are like, 4 developers working on the commandline. And as it turns out, the more you dig into the console story on windows, the crazier it gets (see miniksa's picture of the wall for reference).
We're getting there. We have plans. Patience, and we'll get you something you all like.
Reacted by Ben Buchanan (200ok), Ivan Čurić, Josh M, Alvin Ho, Denis Bardadym and falfia falfiya
Reacted by Егор Малыгин
Reacted by Anton Stoychev and Carl Patenaude-Poulin
John Haugeland (@StoneCypher) Come on. I'm bringing up a problem that if this feature is dismissed all others I've listed won't be possible. So it makes sense to state this here, in this issue. Unless the plan is for Microsoft to release a super-beast tabbable configurable shortcutable terminal emulator app. None of us know that though. And as people talking here we must make decisions to whether contribute to this or focus elsewhere.
Anton Stoychev (@antitoxic) - please stop creating alerts for me that have nothing to do with the issue I'm subscribed to, thank you
Reacted by Carl Patenaude-Poulin, L Will Ahonen, Bernhard Döbler and Desprit
Reacted by Hannah Brooke, Josh Junon, Pieterjan Van Saet, Arun Nair, Timothy Haryadi, Luke Hsiao, poke, LouisGameDev, Cristobal Cortes, Brandon Clapp and 3 more
LilRed that doesn't sound like an issue to me. That's a one-liner you can put in your .bash_profile if you want. It sounds to me like this issue has been resolved - or am I missing something?
Activity
zadjii-msft commentedon May 11, 2016
Thanks for the suggestion! This is actually pretty high on my personal list of requests for the future, however, we weren't able to fit it into the Anniversary Update, though I'd keep my eye out in the future for it.
A coming insider update should have support to at least take the 256-color ANSI sequences and the full RGB ANSI sequences and find the nearest color that's in our 16-color table, and use that to render, which should at least enable applications which use those sequences to not be totally broken.
I'm gonna close this as a dupe of #76, which has more discussion on the subject.
musm commentedon Jul 15, 2016
Could we get this reopened as #76 was closed since it was decided that the scope there was not 256 color support but just properly mapping 8-bit colors to the 256-bit range.
benhillis commentedon Jul 15, 2016
Good suggestion!
be5invis commentedon Jul 15, 2016
It is hard, almost impossible.
Conhost uses a fixed 32-bit-per-cell layout (16 bits for properties and 16 bits for character code), which is a derivative of VGA text mode (yes, the DOS-era video memory layout, 8 bits for properties and 8 bits for color). Modifying it will definitely break compatibility, unless MS want to implement a completely different console API set (and provide a compatibility layer for existing console apps).
musm commentedon Jul 15, 2016
Thanks Belleve (@be5invis). It's 2016, breaking compatibility with DOS I don't think will in anyway affect anyone using windows 10, maybe a dozen people. It seems more logical to introduce a new fresh and modern console API that can be used for the next decade and retain the old conhost for legacy purposes.
Certainly, this wouldn't be the first time compatibility has been broken and trying to maintain backwards compatibility for something that old is impressive. I like what they did with IE; tons of stuff depended on IE, but they figured a way around it and introduced Edge, by keeping IE installed but for legacy support.
Considering the large number of devs that use the terminal on a daily basis (esp. linux devs to are married to the terminal), i think this would benefit more people than it would affect. Bash on windows is wonderful, but it's missing some polish and I think this would go a long way.
be5invis commentedon Jul 15, 2016
Mustafa Mohamad (@musm) However, I am talking about NT console API, which is the basis of almost all Windows console applications and many of them are important basic industrial infrastructure, controlling important things like nuclear power plants...
The only possible solution is to create a new console API interface and a bug-to-bug compatibility layer.
musm commentedon Jul 30, 2016
I'm going to ref #417 as Maksim Moisiuk (@Maximus5) suggested the fix
"Mike Griese (@zadjii-msft) This issue is not actually forces msft to implement truecolor in conhost. In fact, and instead, topic starter asked you to bypass ANSI to ConEmu, which already supports true-color in console.
Current implementation of console output in WSL prohibits ConEmu from processing any ANSI written by linux applications. That tight integration with kernel(?) is rather bad.
I believe, the issue have to be reopened, ConEmu doesn't limit user to 16-colors palette. And proposed approximation would look awful."
be5invis commentedon Jul 30, 2016
Mustafa Mohamad (@musm) Ben Hillis (@benhillis) Mike Griese (@zadjii-msft)
What if users do not have installed ConEmu?
The true problem is that CONHOST already used all bits of the console buffer. And programs can directly modify it via C/C++ code.
A solution may be to provide another completely different console API (stream-based) and provide a compatibility layer to the existing one (blitting the buffer at 60fps?). Maybe you MS guys should have a serious talk with OSG.
musm commentedon Jul 30, 2016
The suggestions is a hacky one I agree, but something hopefully sufficient for the group using conemu in the interim while MS cooks up (hopefully) a longer term fix for the future.
+1 for your idea of a new console API with a compatibility layer is far preferable of course
be5invis commentedon Jul 30, 2016
Mustafa Mohamad (@musm)
Hacky is necessary, because breaking existing console behavior may break important things like nuclear power plants. You definitely do not want that thing to happen.
If you want to connect your terminal to WSL, why do not just use SSH?
musm commentedon Jul 30, 2016
Could you clarify on how I would "If you want to connect your terminal to WSL, why do not just use SSH?"
39 remaining items
oblitum commentedon Oct 5, 2016
@DJviolin I've seen a lot of stuff these days about slackware/arch etc, with X apps etcs, some weird stuff, maybe there's something about Debian on the web, I don't recall whether I've seen something about that or not.
bitcrazed commentedon Oct 6, 2016
Francisco Lopes (@oblitum) Re. alt distro's: Note that they're unsupported at this time, but do feel free to give them a try: We don't do anything to prevent them from working; we're just focusing all our effort on delivering as solid an experience as possible on Ubuntu at this time.
antitoxic commentedon Oct 19, 2016
Mike Griese (@zadjii-msft)
That means only powershell and cmd will support this, right? Which means I can't use any external manager for things like tabs, color schemes, tiling. Can you suggest a way to overcome this problem?
be5invis commentedon Oct 19, 2016
Mike Griese (@zadjii-msft) Yeah, could you please provide an example in C, calls WINAPI directly, and able to produce 24-bit color?
zadjii-msft commentedon Oct 19, 2016
Anton Stoychev (@antitoxic) It means only conhost.exe console windows (the default for cmd.exe, powershell.exe, bash.exe, etc) will be able to get this behavior, correct. Changing the API surface is pretty much out of the question for this release.
And to be completely honest, 3rd party consoles aren't really a supported feature. They work because you are able to query the buffer and get it's contents (in lieu of proper pty-like behavior), but it's not something we go out of our way to support.
If a third party console REALLY wanted 24bit color, I'd imagine they might be able to disable VT processing mode of the console window, then parse the VT sequences themself. It's certainly not a great solution, but it might work (I honestly have no idea if it would). It would mean that the source console window and the 3rd party one would have vastly different buffer contents - which I'd imagine would cause a lot of difficulty.Belleve (@be5invis) In terms of producing the colors:
Most of that is copy-pasta from MSDN
antitoxic commentedon Oct 19, 2016
Mike Griese (@zadjii-msft) I'm just a dev that wants a better developer experience. I am the user. I don't want to get involved with command-line specifics to the point I know more about command line terminals, window managers and so on, than what I need to do in the first place.
I really just want tabs, color schemes, shortcuts. In order to be quick, to visually distinguish stuff, to do my job and move on.
Do you have any plans to develop this in further stage? If Microsoft will not, it seems only logical/fair to help others develop it. Colors, fonts, shortcuts, custom clipboard management - these are all fundamentals of good UX. I understand it's out of scope for cmd or powershell but please work together with the only people that do workable terminal GUI in windows. May be a separate group? A collaborative project?
zadjii-msft commentedon Oct 19, 2016
Anton Stoychev (@antitoxic) I agree with a lot of that. We're developers too, and we want tabs too. But there are like, 4 developers working on the commandline. And as it turns out, the more you dig into the console story on windows, the crazier it gets (see miniksa's picture of the wall for reference).
We're getting there. We have plans. Patience, and we'll get you something you all like.
StoneCypher commentedon Oct 19, 2016
it's frustrating how every time someone says "i want x," other people come and decorate it with every other feature they've ever heard of
open new issues, guys. you know how issue trackers work.
antitoxic commentedon Oct 19, 2016
Mike Griese (@zadjii-msft) fantastic. I would love if there was more info on what's going on.
John Haugeland (@StoneCypher) Come on. I'm bringing up a problem that if this feature is dismissed all others I've listed won't be possible. So it makes sense to state this here, in this issue. Unless the plan is for Microsoft to release a super-beast tabbable configurable shortcutable terminal emulator app. None of us know that though. And as people talking here we must make decisions to whether contribute to this or focus elsewhere.
zadjii-msft commentedon Oct 19, 2016
Anton Stoychev (@antitoxic) I'm gonna stop before I say too much.

StoneCypher commentedon Oct 19, 2016
Anton Stoychev (@antitoxic) - please stop creating alerts for me that have nothing to do with the issue I'm subscribed to, thank you
let's be silly and turn clink into klink.
carlpaten commentedon Nov 21, 2016
Mike Griese (@zadjii-msft) FYI - most programs won't recognize 256 color support until
$TERMis changed fromxterm-colortoxterm-256color.DanielGGordon commentedon Mar 13, 2017
LilRed that doesn't sound like an issue to me. That's a one-liner you can put in your
.bash_profileif you want. It sounds to me like this issue has been resolved - or am I missing something?carlpaten commentedon Mar 13, 2017
Daniel Gordon (@DanielGGordon): AFAIK significant functional discrepancies from stock Ubuntu are treated as bugs.
Though
$TERMhas indeed been updated, so yes, I think this issue is solved.