[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[其他] ansicon - 让 windows 支持 ansi 颜色

ANSICON by Jason Hood <[email]jadoxa@yahoo.com.au[/email]>.
Version 1.53 (12 June, 2012).  Freeware.
http://ansicon.adoxa.cjb.net/

Process ANSI escape sequences in Win32 console programs.

ansicon [-l<level>] [-i] [-I] [-u] [-U] [-m[<attr>]] [-p]
        [-e|E string | -t|T [file(s)] | program [args]]

  -l            set the logging level (1=process, 2=module, 3=function,
                 +4=output, +8=append) for program (-p is unaffected)
  -i            install - add ANSICON to the AutoRun entry (also implies -p)
  -u            uninstall - remove ANSICON from the AutoRun entry
  -I -U         use local machine instead of current user
  -m            use grey on black ("monochrome") or <attr> as default color
  -p            hook into the parent process
  -e            echo string
  -E            echo string, don't append newline
  -t            display files ("-" for stdin), combined as a single stream
  -T            display files, name first, blank line before and after
  program       run the specified program
  nothing       run a new command processor, or display stdin if redirected

<attr> is one or two hexadecimal digits; please use "COLOR /?" for details.
It may start with '-' to reverse foreground and background (but not for -p).


示例1:
ansicon < "ANSI Prompt Colours.txt"

示例2:

  • 安装: ansicon -i
  • type "ANSI Prompt Colours.txt"


示例3 - 高亮字符:

http://bcn.bathome.net/s/tool/index.html?key=ansicon

----------------------------------------------
官网: http://adoxa.3eeweb.com/ansicon/index.html
----------------------------------------------

这个在哪些命令行下有显示颜色?

TOP

返回列表