Enabling ANSI colors in older versions of Windows To use ANSI colours in the Windows terminal requires setting VirtualTe +rminalLevel. VirtualTerminalLevel = 1 is now set by default for the terminal and in + ConPTY. In Windows versions 1511 through to 1903 this had to be enabled in the + registry at: [HKEY_CURRENT_USER\Console] "VirtualTerminalLevel"=dword:00000001 Alternatively it can be enabled by calling the SetConsoleMode API with + the ENABLE_VIRTUAL_TERMINAL_PROCESSING flag 24 bit color The latest W10 Console has full 24-bit color support, this is primaril +y for Linux compatibility so the console properties page and the defa +ult Windows color mappings still use just 16 colors, there is no plan + to add additional console colors to the Win32 API. To take advantage of the new colors use ColorTool.exe and install a th +eme, or use the VT100 sequences described here. When the VT100 sequences are used with a version of the Windows Consol +e that supports 24-bit colors they will display the desired RGB color +, older consoles will choose the nearest appropriate color from the e +xisting 16 color table.
https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences?redirectedfrom=MSDN#extended-colors

In reply to Re^5: 'rgb_palette' - Term::ANSIColor Helper -- errors on strawberry (win32 cmd.exe colors) by Anonymous Monk
in thread 'rgb_palette' - Term::ANSIColor Helper by kcott

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.