How to recognize ansi color escape codes in Windows7 64 bit command terminal

前端 未结 4 1740
渐次进展
渐次进展 2020-12-19 10:40

I have tried Ansicon and I still cannot get ansi escape sequences to become recognized and interpreted in my CMD.EXE command prompt on Windows 7 64 bit. Has anyone been able

相关标签:
4条回答
  • 2020-12-19 11:15

    Ansicon use dll injection in order to enable ansi color in cmd.exe, which is disabled with the standard user privileges.

    Try launching ansicon with "run as administrator" (right click)

    0 讨论(0)
  • 2020-12-19 11:16

    ANSICON (source) seems to work fine for me...

    • Put ansicon somewhere you intend to keep it...
    • Run ANSICON -I
    • Close the terminal
    • Open a new one...
    0 讨论(0)
  • 2020-12-19 11:20

    I've played a lot with this, and the best console for me is FarManager on Windows. http://www.farmanager.com/

    It's a file manager, but with CTRL+O you will get the console, and very handy with full support of ANSI, autocomplete, etc.

    0 讨论(0)
  • 2020-12-19 11:21

    I ran into the same problem today, and found a workaround.

    The commandline utility Windows ANSI Color detects ANSI color codes and sets the corresponding console color.

    Example:

    myapp.bat | wac
    

    where wac is the Windows ANSI color utility

    0 讨论(0)
提交回复
热议问题