Board logo

标题: [其他] ansicon - 让 windows 支持 ansi 颜色 [打印本页]

作者: tmplinshi    时间: 2012-10-30 10:27     标题: 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:


示例3 - 高亮字符:

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

----------------------------------------------
官网: http://adoxa.3eeweb.com/ansicon/index.html
----------------------------------------------
作者: lsw0794    时间: 2013-8-9 11:04

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




欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2