Skip to content

Console support for 24-bit color escape sequences #417

Closed

Description

@fpqc

I know that quite a few people have asked for the console to support things like xterm's 256 color palette and mouse input, but in order to avoid having the BashOnWindows team go to all of that trouble supporting 256-color-mode just to have it be obsolete, I thought it was worth noting that almost all of the linux terminal emulators except xterm now support 24-bit truecolor escape sequences. ConEMU for Windows can enable displaying 24-bit color in console applications (almost exclusively used so FAR manager can display thumbnails), but it is not compatible with the Linux side of things, which probably would have to be handled on Microsoft's end.

https://gist.github.com/XVilka/8346728

Activity

  1. cgull commented on May 23, 2016

    @cgull

    xterm actually does support the relevant escape sequences, but renders via its 256-color palette.

  2. zadjii-msft commented on May 23, 2016

    @zadjii-msft
    Member

    This is already something we're working on, for the anniversary update the full RGB (as well as the 256 color) sequences will be interpreted, but they'll be mapped to the nearest color in the already existent 16-color table in conhost. True RGB color support is on the backlog, but certainly not for this update unfortunately.

    I'm closing this as a dupe of #76

  3. Maximus5 commented on May 24, 2016

    @Maximus5

    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...

  4. Maximus5 commented on May 24, 2016

    @Maximus5

    Actually, issue gh-406 is about bypassing ANSI to ConEmu.

  5. zerocool4u2 commented on May 25, 2016

    @zerocool4u2

    i was wondering about that, before the feature of mapping colors to 16-table, conemu and other emulators where able to display the actual colors? i didn't do a colortest before the patch on conemu, but right know it looks like the picture on #76, in the case that it was working it would be really nice to have an option to toggle this functionality on cmd to get it to work on other alternatives, anyone can confirm?, regards.

  6. Maximus5 commented on May 26, 2016

    @Maximus5

    From conhost-based emulators only ConEmu is able to display "actual" colors (24bit colors actually).
    ConEmu stores actual color information in its own color buffer and do some magic to "synchronize" changes with conhost.

    However, implementation is not perfect and in the current version true-color is available only at the bottom of the buffer. That's so because the mode was initially implemented for Far Manager.

    Screenshot below is from cmd.exe started under ConEmu

    type "%ConEmuBaseDir%\Addons\AnsiColors256.ans"
    

    2016-05-26_03-21-48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions