Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: 'rgb_palette' - Term::ANSIColor Helper -- errors on strawberry (win32 cmd.exe colors)

by Anonymous Monk
on Aug 16, 2022 at 10:21 UTC ( [id://11146161]=note: print w/replies, xml ) Need Help??


in reply to Re^3: 'rgb_palette' - Term::ANSIColor Helper -- errors on strawberry
in thread 'rgb_palette' - Term::ANSIColor Helper

Cmd.exe supports what it supports , 16 colors. powershell might support more. Win32::Console::ANSI

Hello details https://ss64.com/nt/syntax-ansi.html

  • Comment on Re^4: 'rgb_palette' - Term::ANSIColor Helper -- errors on strawberry (win32 cmd.exe colors)

Replies are listed 'Best First'.
Re^5: 'rgb_palette' - Term::ANSIColor Helper -- errors on strawberry (win32 cmd.exe colors)
by Anonymous Monk on Aug 16, 2022 at 19:30 UTC
    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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11146161]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-26 05:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found