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

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

[复制链接]
发表于 2012-10-30 10:08:50 | 显示全部楼层 |阅读模式
Color Echo by Jason Hood <jadoxa@yahoo.com.au>.
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
发表于 2012-11-4 15:57:19 | 显示全部楼层
这个简单易用
发表于 2013-1-10 23:25:38 | 显示全部楼层
正好需要这个工具,非常感谢。
发表于 2013-1-14 17:26:27 | 显示全部楼层
爽死我了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-3-17 03:52 , Processed in 0.016982 second(s), 8 queries , File On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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