简体   繁体   中英

Ansicon doesn't work with Windows 8

Ansicon does not seem to want to work with Windows 8.

1 - I install it correctly : ansicon -i under the x64 directory (since I have Win 8 on a 64-bit machine/install), 2 - I launch a new command window, run rspec to run unit tests in ruby

Result - the ANSI characters are still displaying the raw unconverted data.

Any help would be appreciated; thanks.

Sounds like ansicon might not have installed correctly. I've got ansicon working well on Windows 8 64-bit with Ruby 1.9.3p392.

http://imgur.com/n28vomG

Try running ansicon -i from an elevated Command Prompt and see if that makes any difference. If you don't have administrator permissions, run ansicon -p to hook into the parent process for the current session and then see if rspec returns colored output then.

If you still can't get it to work, maybe try reinstalling the latest version of ansicon . I installed the 64-bit files ( ANSI32.dll , ANSI64.dll , ansicon.exe , ANSI-LLW.exe ) in my Ruby's bin directory so I know it's in my PATH.

I did a cheap trick and just made a shorcut directly on my desktop in order to use it. adding it to the path crashed ruby.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM