找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
查看: 26278|回复: 1

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

[复制链接]
发表于 2012-10-30 10:27:18 | 显示全部楼层 |阅读模式
ANSICON by Jason Hood <jadoxa@yahoo.com.au>.
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
----------------------------------------------
发表于 2013-8-9 11:04:36 | 显示全部楼层
这个在哪些命令行下有显示颜色?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-3-17 04:49 , Processed in 0.016924 second(s), 8 queries , File On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表