- 帖子
- 1023
- 积分
- 3120
- 技术
- 230
- 捐助
- 160
- 注册时间
- 2010-12-22
|
[其他] 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
---------------------------------------------- |
|