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

[其他] cecho - 单行显示多种颜色

Color Echo by Jason Hood <[email]jadoxa@yahoo.com.au[/email]>.
Version 0.90 (12 July, 2004). Public Domain.
http://misc.adoxa.cjb.net/

Display text using any color you like.

Usage: cecho text
       cecho --map[b|B|x]
       cecho --<attr>

"text" is output as-is, with the exception of '#' sequences:

fb      foreground color and optional background color:
            n  black      N  dark gray          :  current color
            r  red        R  bright red
            g  green      G  bright green
            b  blue       B  bright blue
            c  cyan       C  bright cyan
            m  magenta    M  bright magenta
            y  brown      Y  yellow
            w  gray       W  white

~       restore original color
=       keep current color on exit
;       don't end with new line

#       #               ,       tab
a       &               _       new line
o       |               d       ding
s       <               h       backspace
l       >               [       escape

xhh     character represented by one- or two-digit hexadecimal number
ddc     repeat 'c' (which may be a '#' sequence) dd times, which may be
        a one- or two-digit decimal number

-       stop '#' processing
+       start '#' processing (only if stopped)
.       really stop '#' processing (quote remaining text)

Any character following '#' not present in the above list will be output
untranslated (along with the '#').

--map will display all the foreground colors with normal background colors;
b will use the bright background colors; and B will display both (assumes 80
columns). --mapx will display the extended ASCII characters.

--<attr> will set the color to <attr>, a decimal number between 0 and 255.
The current attribute is returned when displaying "text".


示例1 - 显示所有颜色:
cecho --map



示例2:
cecho #GbTest....#GyTest....#_#RnTest



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

http://bcn.bathome.net/s/tool/index.html?key=cecho
附件: 您需要登录才可以下载或查看附件。没有帐号?注册

这个简单易用
『千江有水千江月』千江有水,月映千江;万里无云,万里青天。    http://yu2n.qiniudn.com/

TOP

正好需要这个工具,非常感谢。
一生的努力,才能求的灵魂的安宁。

TOP

爽死我了!

TOP

返回列表