首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在64位Windows 7企业版上运行ANSICON时出现问题

在64位Windows 7企业版上运行ANSICON时出现问题
EN

Stack Overflow用户
提问于 2012-02-10 22:50:01
回答 4查看 11.9K关注 0票数 5

我一直在尝试让1.50或1.40ANSICON (https://github.com/adoxa/ansicon)正常工作,并且看了这么多关于如何安装这个的页面:http://blog.mmediasys.com/2010/11/24/we-all-love-colors/ http://carol-nichols.com/2011/03/the-system-cannot-find-the-path-specified/

等等……

因此,我将我的AutoRun设置为"C:\usr\bin\ansi140\x64\ansicon.exe“-p,并且我也测试了150,但没有任何变化。

我的整个团队都能正常工作,但我不能让它工作..我仍然在命令提示符上看到乱码:

代码语言:javascript
复制
  Scenario: Residential caller chooses to hear payment locations closest to home and there are 3 locations available which are in a 25 miles radius.?[90m #
 features\payment_locations.feature:5?[0m
    ?[32mGiven the call flow is '?[32m?[1mDivisional?[0m?[0m?[32m'?[90m
                          # features/step_definitions/common_steps.rb:5?[0m?[0m
    ?[32mAnd the ani is '?[32m?[1m6101234572?[0m?[0m?[32m'?[90m
                          # features/step_definitions/common_steps.rb:9?[0m?[0m
    ?[32mAnd the dnis is '?[32m?[1m9?[0m?[0m?[32m'?[90m
                          # features/step_definitions/common_steps.rb:13?[0m?[0m
    ?[31mWhen the call is started?[90m
    # features/step_definitions/common_steps.rb:17?[0m?[0m
?[31m      Connection refused - Connection refused (Errno::ECONNREFUSED)?[0m
?[31m      org/jruby/ext/socket/RubyTCPSocket.java:121:in `initialize'?[0m
?[31m      org/jruby/RubyIO.java:864:in `new'?[0m
?[31m      org/jruby/ext/socket/RubyTCPSocket.java:147:in `open'?[0m
?[31m      c:/usr/bin/jruby-1.6.4/lib/ruby/1.8/net/http.rb:560:in `connect'?[0m
?[31m      org/jruby/ext/Timeout.java:79:in `timeout'?[0m
?[31m      c:/usr/bin/jruby-1.6.4/lib/ruby/1.8/net/http.rb:560:in `connect'?[0m
?[31m      c:/usr/bin/jruby-1.6.4/lib/ruby/1.8/net/http.rb:553:in `do_start'?[0m
?[31m      c:/usr/bin/jruby-1.6.4/lib/ruby/1.8/net/http.rb:548:in `start'?[0m
?[31m      org/jruby/RubyKernel.java:2100:in `send'?[0m
?[31m      ./features/support/request_helper.rb:12:in `request'?[0m
?[31m      ./features/support/request_helper.rb:4:in `get'?[0m
?[31m      ./features/step_definitions/common_steps.rb:22:in `(root)':in `/^the call is started$/'?[0m
?[31m      features\payment_locations.feature:9:in `When the call is started'?[0m

有没有人可以帮助我理解为什么我会有这个问题,而我的团队中其他拥有相同笔记本电脑的人却没有这个问题?

从第一条评论开始编辑:

我尝试了您的要求,并使用以下选项卡设置进行重复操作:

代码语言:javascript
复制
    <tab title="ANSICON" icon="linux.ico" use_default_icon="0">
        <console shell="C:\usr\bin\ansi150\x64\ansicon.exe" init_dir="C:\usr\git_workspaces\d2" run_as_user="0" user=""/>
        <cursor style="0" r="255" g="255" b="255"/>
        <background type="0" r="0" g="0" b="0">
            <image file="" relative="0" extend="0" position="0">
                <tint opacity="0" r="0" g="0" b="0"/>
            </image>
        </background>
    </tab>

但是这个问题仍然存在。

代码语言:javascript
复制
    ?[0m  ?[36m    <catch event="error">
    ?[0m  ?[36m        <submit next="/d2/exception/handleVoiceBrowserError.vxml" namelist="_event _message" />
    ?[0m  ?[36m    </catch>
    ?[0m  ?[36m
          ?[36m</vxml>?[0m
        ?[32mThen play the payment locations?[90m
                                                          # features/step_definitions/billing_steps.rb:360?[0m?[0m
        ?[32mThen caller hangs up the phone?[90m
                                                          # features/step_definitions/goodbye_steps.rb:1?[0m?[0m

    1 scenario (?[32m1 passed?[0m)
    32 steps (?[32m32 passed?[0m)
    0m10.302s

我似乎也有术语-ansicolor gem,所以这应该是可行的。

代码语言:javascript
复制
*** LOCAL GEMS ***

atoulme-Antwrap (0.7.1 java)
bouncy-castle-java (1.5.0146.1)
builder (2.1.2)
buildr (1.4.6 java)
buildr-xivr (0.0.6, 0.0.4)
bundler (1.0.20)
crack (0.1.8)
cucumber (1.0.0, 0.10.2)
diff-lcs (1.1.2)
gherkin (2.4.21 java, 2.4.16 java, 2.3.8 java)
highline (1.5.1)
hoe (2.3.3)
hpricot (0.8.3 java)
httparty (0.7.8, 0.7.7)
jruby-openssl (0.7.5, 0.7.4)
jruby-win32ole (0.8.5)
json (1.6.5 java, 1.5.4 java, 1.5.1 java)
json_pure (1.4.3)
mechanize (1.0.0)
minitar (0.5.3)
net-scp (1.0.4)
net-sftp (2.0.4)
net-ssh (2.0.23)
nokogiri (1.5.0 java, 1.5.0.beta.4 java)
rake (0.8.7)
rspec (2.1.0, 1.3.2)
rspec-core (2.1.0)
rspec-expectations (2.1.0)
rspec-mocks (2.1.0)
rubyforge (2.0.3)
rubygems-update (1.8.10)
rubyzip (0.9.4)
sources (0.0.1)
term-ansicolor (1.0.7, 1.0.6, 1.0.5)
xml-simple (1.0.12)

但事实并非如此。在Cygwin和CMD上都没有。情节变得更加复杂

EN

回答 4

Stack Overflow用户

回答已采纳

发布于 2012-06-09 06:19:42

使用ansicon起作用了。此外,您可能想要查看Console2,以获得一个出色的多选项卡控制台。

C:\Apps\Console

  • Configure控制台将ansi152/x64解压到控制台中,以运行不同的
  1. ,即<console-install-dir>。powershell,cmd,gitbash
  2. 在控制台中从<console-install-dir>运行ansicon -i

PS。您可能需要在$env:path中添加console-install-dir

票数 4
EN

Stack Overflow用户

发布于 2012-02-11 04:44:59

要修复ansicon安装,

  1. Grab Console2,extract,到文件夹,从ansi150.zip\x64挖掘C:\Applications\.
  2. Extract文件,使用64位二进制文件,将其放置在与Console2相同的文件夹中。
  3. 打开C:\Applications\Console2\Console.exe.
  4. From Console2菜单打开File > Edit > Settings > Tabs,使用C:\Applications\Console2\ansicon.exe填充Shell,或浏览到该菜单。单击Ok。
  5. 要应用更改,请重新打开Console2选项卡。

我的设置是Win7 64位上的Console-2.00b148-Beta_64bit.zip和ansi150.zip (不编辑AutoRun注册表)。

票数 2
EN

Stack Overflow用户

发布于 2012-05-23 07:28:39

我自己也遇到过这个问题,我终于看到了彩色输出。我遵循了以下步骤:

Download "https://github.com/downloads/adoxa/ansicon/ansi150.zip"

  • Copy
  1. 将"x64“目录下的文件下载到路径中的某个位置。

例如,您可以将它们复制到"c:\windows\system32".

  • Copy,将"x64“目录下的文件复制到您在步骤2中使用的相同位置。

这将覆盖ANSI32.DLL和ansicon.exe

  • Install ansicon,方法是在命令提示符下输入"ansicon -I“

现在您应该可以看到彩色输出。

确保通过设置环境变量ANSICON_LOG来启用日志记录:

设置ANSICON_LOG=3

这应该会将输出记录到%TEMP%\ansicon.log (通常是"c:\temp\ansicon.log")

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9229599

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档