Ansicon does not seem to want to work with Windows 8.
Ansicon似乎不想使用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
1 - 我正确安装:在x64目录下的ansicon -i(因为我在64位机器上安装了Win 8),2 - 我启动了一个新的命令窗口,运行rspec在ruby中运行单元测试
Result - the ANSI characters are still displaying the raw unconverted data.
结果 - ANSI字符仍显示未转换的原始数据。
Any help would be appreciated; thanks.
任何帮助,将不胜感激;谢谢。
2 个解决方案
#1
2
Sounds like ansicon
might not have installed correctly. I've got ansicon
working well on Windows 8 64-bit with Ruby 1.9.3p392.
听起来像ansicon可能没有正确安装。我使用Ruby 1.9.3p392让ansicon在Windows 8 64位上运行良好。
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.
尝试从提升的命令提示符运行ansicon -i,看看是否有任何区别。如果您没有管理员权限,请运行ansicon -p挂钩到当前会话的父进程,然后查看rspec是否返回彩色输出。
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.
如果仍然无法使用它,可以尝试重新安装最新版本的ansicon。我在我的Ruby的bin目录中安装了64位文件(ANSI32.dll,ANSI64.dll,ansicon.exe,ANSI-LLW.exe),所以我知道它在我的PATH中。
#2
1
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.
我做了一个廉价的技巧,只是直接在我的桌面上做了一个shorcut以便使用它。将它添加到路径崩溃的红宝石。
#1
2
Sounds like ansicon
might not have installed correctly. I've got ansicon
working well on Windows 8 64-bit with Ruby 1.9.3p392.
听起来像ansicon可能没有正确安装。我使用Ruby 1.9.3p392让ansicon在Windows 8 64位上运行良好。
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.
尝试从提升的命令提示符运行ansicon -i,看看是否有任何区别。如果您没有管理员权限,请运行ansicon -p挂钩到当前会话的父进程,然后查看rspec是否返回彩色输出。
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.
如果仍然无法使用它,可以尝试重新安装最新版本的ansicon。我在我的Ruby的bin目录中安装了64位文件(ANSI32.dll,ANSI64.dll,ansicon.exe,ANSI-LLW.exe),所以我知道它在我的PATH中。
#2
1
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.
我做了一个廉价的技巧,只是直接在我的桌面上做了一个shorcut以便使用它。将它添加到路径崩溃的红宝石。