On Thu, Nov 7, 2024 at 9:23 PM ToddAndMargo via perl6-users <perl6-
us...@perl.org <mailto:perl6-us...@perl.org>> wrote:
>> On Tue, Nov 5, 2024 at 2:54 AM ToddAndMargo via perl6-users <perl6-
>> us...@perl.org <mailto:us...@perl.org> <mailto:perl6-
us...@perl.org <mailto:perl6-us...@perl.org>>> 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] >
>>
On 11/6/24 04:43, Will Coleda wrote:
> Works for me on windows 11 using the x64 Native Tools Command
Prompt for
> VS 2019, git bash, powershell...
>
> raku -MTerminal::ANSIColor -e "say color('bold'), 'hello',
color('reset')"
>
> Just prints a bold hello.
>
> I'm on raku 2024.07, OS Version 10.0.22631 N/A Build 22631,
> Terminal::ANSIColor:ver<0.9>:auth<zef:lizmat>
>
> What shell are you using,
Tested in both:
C:\Windows\System32\cmd.exe:
raku -e "use Terminal::ANSIColor; print color('bold'),
color('red'), 'abc', color('reset');"
←[1m←[31mabc←[0m
and
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe:
raku -e "use Terminal::ANSIColor; print color('bold'),
color('red'), 'abc', color('reset');"
←[1m←[31mabc←[0m
> what versions of Raku, etc.?
See the first and second line of my original post
I am using a somewhat older version (2024/07) of
Raku as the newer one crashes on some of my
NativeCalls. I have not had time to troubleshot
it to find out what is wrong or to test against
the absolute latest (2024-10) Rakudo.
On 11/11/24 08:22, Will Coleda wrote:
All these examples work for me, and I'm using the same version of raku:
can you share the output of:
zef info Terminal::ANSIColor
and
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
Picture worth a 1000 words:
https://ibb.co/tKms7st
C:\NtUtil>zef info Terminal::ANSIColor
===> Searching for: Terminal::ANSIColor
- Info for: Terminal::ANSIColor
- Identity: Terminal::ANSIColor:ver<0.11>:auth<zef:lizmat>
- Recommended By: Zef::Repository::Ecosystems<fez>
- Installed: Yes
Description: Color screen output using ANSI escape sequences
License: MIT
Source-url: https://github.com/lizmat/Terminal-ANSIColor.git
Provides: 1 modules
Depends: 0 items
C:\NtUtil>systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.26100 N/A Build 26100
C:\NtUtil>raku -MTerminal::ANSIColor -e "say color('bold'), 'hello',
color('reset')"
←[1mhello←[0m