发信人: monopoly (MN国庆回来还要带鱼片么?), 信区: BBS_Help
标 题: 终端体验之旅(四)
发信站: 日月光华 (2005年09月18日13:28:39 星期天), 站内信件
除了以^[[或^[O打头的字符串,可以作为特殊按键外,
在编状状态时,<Esc>还可以和其他字符搭配,有着各种各样的作用。
注:第一列Esc-c表示按下<Esc>后再按大写C或小写c均通用的功能,反转义为^[C或^[c;
第二列^[H 表示按下<Esc>后只按大写H才有效的功能,反转义为^[H;
第三列^[h 表示按下<Esc>后只按小写h才出现的字符,反转义为^[h。
BBS大小写通用功能 大写 对应功能 小写 等效字符
^[@ <Unknown> ^[` <Unknown>
^[A <!!!> ^[a 无
Esc-b 设定背景色
Esc-c 显示彩色效果
Esc-d 删除区块
Esc-e 汇出档案
Esc-f 设定前景色
Esc-g 跳到指定行
^[H = ^F <PageDown> ^[h &
Esc-i 汇出档案
^[J = ^H <BackSpace> ^[j (
^[K = ^I <Tab> ^[k )
Esc-l 关闭讯息栏
Esc-m 区块处理
Esc-n 继续搜寻
^[O <!> 内码输入法 ^[o -
^[P = ^N 向下一行 ^[p .
Esc-q 清除区块标定
Esc-r 还原色彩
Esc-s 搜寻
^[T = ^R 切换单双字节 ^[t 2
^[U = ^S 跳至档案开头 ^[u 3
^[V = ^T 跳至档案结尾 ^[v 4
^[W = ^U 区块标定 ^[u 5
Esc-x 自动换行字限
^[Y = ^W 发表文章 ^[y 7
^[Z = ^X 发表文章 ^[z 8
^[[ <!> 内码输入法 ^[{ 9
^[\ <Unknown> ^[| :
^[] <!!> ^[} ;
^[^ <Unknown> ^[~ <
^[_ <Unknown> ^[<Del> =
部分测试无反应,在上表中以<Unknown>列出;<Del>表示chr(127)即0x7F字符。
警告(Warning):
<!> ^[[ ^[O 作为内码输入法的开头,请参照本系列(四)中说明谨慎使用;
<!!> ^[] 作为未知的不可见字符串,会导致终端无响应,请勿使用;
<!!!> ^[A 作为特殊字符,请勿在任何时候使用。
(to be continued)
--
※ 转载:·日月光华 bbs.fudan.edu.cn·[FROM: 10.100.111.111]
※ 修改:·monopoly 於 09月18日14:28:14 修改本文·[FROM: 10.100.111.111]
Sender: monopoly MN Do you still need to bring fish fillets when you come back during the National Day? Message area: BBS Help
Title: Terminal Experience Journey 4
Sending site: Sun and Moon Guanghua September 18, 2005 13:28:39 Sunday, site mail
In addition to strings starting with ^[[ or ^[O, they can be used as special keys.
In the editing state, <Esc> can also be combined with other characters to have various functions.
Note: Esc c in the first column represents a common function for pressing <Esc> and then pressing uppercase C or lowercase c. The reverse escape is ^[C or ^[c.
The second column ^[H represents the function that is only valid if you press capital H after pressing <Esc>. The reverse escape is ^[H
The third column ^[h represents the character that only appears after pressing <Esc> and pressing lowercase h. The reverse escape is ^[h.
BBS common function for uppercase and lowercase uppercase corresponding function lowercase equivalent characters
^[@ <Unknown> ^[ <Unknown>
^[A <!!!> ^[a None
Esc b Set background color
Esc c displays color effect
Esc d delete block
Esc e Export file
Esc f sets the foreground color
Esc g Jump to the specified line
^[H ^F <PageDown> ^[h &
Esc i Export file
^[J ^H <BackSpace> ^[j
^[K ^I <Tab> ^[k
Esc l close message bar
Esc m block processing
Esc n continue searching
^[O <!> Internal code input method ^[o
^[P ^N Go down one line ^[p .
Esc q clear block calibration
Esc r restore color
Esc s Search
^[T ^R Switch between single and double bytes ^[t 2
^[U ^S Jump to the beginning of the file ^[u 3
^[V ^T Skip to end of file ^[v 4
^[W ^U Block Calibration ^[u 5
Esc x automatic line wrapping word limit
^[Y ^W Post an article ^[y 7
^[Z ^X Posted an article ^[z 8
^[[ <!> Internal code input method ^[{ 9
^[ <Unknown> ^[ :
^[] <!!> ^[};
^[^ <Unknown> ^[ <
^[ <Unknown> ^[<Del>
Some tests have no response. Listed as <Unknown> in the above table. <Del> represents chr 127, which is the 0x7F character.
Warning
<!> ^[[ ^[O As the beginning of the internal code input method, please refer to the instructions in Part 4 of this series to use it with caution
<!!> ^[] as an unknown invisible string will cause the terminal to become unresponsive. Do not use it.
<!!!> ^[A as a special character do not use at any time
to be continued
Reprint: Sun and Moon Guanghua bbs.fudan.edu.cn [FROM: 10.100.111.111]
Modification: monopoly modified this article at 14:28:14 on September 18th [FROM: 10.100.111.111]