Re: Is there a Terminal::ANSIcolor for Windows?

[email protected] (ToddAndMargo via perl6-users)
Newsgroups perl.perl6.users
Message-ID <[email protected]>
On 11/4/24 23:54, ToddAndMargo via perl6-users wrote:
> Windows 11 24H2
> RakudoΓäó v2024.07
> 
> [0] > use Terminal::ANSIColor;  # qx[ color ];
> Nil
> 
> [1] > print color('bold'), color('52'), "abc", color('reset');
> ←[1m←[38;5;52mabc←[0m[1] >
> 
> [1] > print color('bold'), color('red'), "abc", color('reset');
> ←[1m←[31mabc←[0m[1] >


Coke figured this out for me over on the chat line.
As of Windows 10, ANSI processing if disabled by
default.  You change it back with:


REGEDIT4
; Allow progams to wite ANSI color to terminals
[HKEY_CURRENT_USER\Console]
"VirtualTerminalLevel"=dword:00000001


Since I know have a module to read and write the registry,
my next step is to see if I can change the setting and
have it work without having to exit the terminal and/or
reboot the machine.

Thank you all for the help!

-T
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.