大侠阿木博客
大侠阿木博客

echox 的用法 高亮显示字体

EchoX 2.5 - (C) 2004-2006 by Bill Stewart (bstewart@iname.com)

Usage: echox [-c color | [-f fg] [-b bg]] [-n] [-w width [-r | -e]] message
  or: echox -l

-c       Specifies a color (01-FE).
-f, -b   Specifies the foreground and background colors (0 through F).
-n       Do not skip to the next line.
-w       Specifies the message should be 'width' characters wide.
-r       Right-aligns the message with respect to the specified width.
-e       Centers the message with respect to the specified width.
message  The text to be displayed.
-l       Lists available colors in a table.

 

-c       Specifies a color (01-FE).指定一种颜色
-f, -b   Specifies the foreground and background colors (0 through F).指定前景和背色
-n       Do not skip to the next line.不要跳到下一行
-w       Specifies the message should be 'width' characters wide.指定宽度必须带上宽度字符
-r       Right-aligns the message with respect to the specified width.对于指定宽度的信息靠右排列
-e       Centers the message with respect to the specified width.对于指定宽度的信息居中排列
message  The text to be displayed.显示该文本
-l       Lists available colors in a table.显示有效颜色列表

 

When specifying colors, the foreground color cannot match the background color.
If you specify -c, you cannot specify -f or -b (and vice versa).

The message can contain the following escape sequences: ~n (return), ~r (line
feed), and ~t (tab). To display a literal '~' if it's followed by n, r, or t,
use '~~'. Escape sequences are ignored if -w is specified.

color /?
设置默认的控制台前景和背景颜色。
COLOR [attr]
  attr        指定控制台输出的颜色属性
颜色属性由两个十六进制数字指定 -- 第一个为背景,第二个则为
前景。每个数字可以为以下任何值之一:
    0 = 黑色       8 = 灰色
    1 = 蓝色       9 = 淡蓝色
    2 = 绿色       A = 淡绿色
    3 = 湖蓝色     B = 淡浅绿色
    4 = 红色       C = 淡红色
    5 = 紫色       D = 淡紫色
    6 = 黄色       E = 淡黄色
    7 = 白色       F = 亮白色
如果没有给定任何参数,该命令会将颜色还原到 CMD.EXE 启动时
的颜色。这个值来自当前控制台窗口、/T 开关或
DefaultColor 注册表值。
如果用相同的前景和背景颜色来执行 COLOR 命令,COLOR 命令
会将 ERRORLEVEL 设置为 1。
例如: "COLOR fc" 在亮白色上产生亮红色
没有标签
首页      Android      Android 教程      echox 的用法 高亮显示字体

大侠阿木博客

echox 的用法 高亮显示字体
EchoX 2.5 - (C) 2004-2006 by Bill Stewart (bstewart@iname.com) Usage: echox [-c color | [-f fg] [-b bg]] [-n] [-w width [-r | -e]] message   or: echox -l -c       Specifies a…
扫描二维码继续阅读
2014-05-10