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

[email protected] (ToddAndMargo via perl6-users)
Newsgroups perl.perl6.users
Message-ID <[email protected]>
On 11/12/24 19:52, ToddAndMargo via perl6-users wrote:
> 
>> C:\NtUtil>raku -MTerminal::ANSIColor -e "say color('bold'), 'hello', 
>> color('reset')"
>> ←[1mhello←[0m
> 
> Interesting.  This works
> 
> echo ^[[32m HI ^[[0m
> 
> where `^[` is generated with `<alt><keypad 027>`
> 
> I do believe that the ESC `chr(27)` is not being literally
> sent to the screen.  Raku is intercepting it.
> 
> 
> raku -e "print Q/^[[32m Hi ^[[0m/"
> ←[32m Hi ←[0m
> 
> raku -e "print chr(27), '[32m Hi ', chr(27), '[0m'"
> ←[32m Hi ←[0m
> 
> 
> raku -e "print Q[←]"
> ←
> 
> raku -e "print ord(Q[←])"                                      8592

I upgraded to
    RakudoMoar-2024.10.01-win-x86_64-msvc.msi
No symptom change
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.