如何控制Telnet客户端中光标的位置?
一直很困扰我的问题,谁给我一个提示?
问题点数:100、回复次数:6Top
1 楼tpProgramer(tp编程者)回复于 2002-02-25 15:43:03 得分 100
还是我来吧,这个问题我曾经问过,后来我自己弄懂了:
你听过vt100吧.呵呵, 如果不知道,请看看自己telnet的键盘模式.
对于与vt100兼容的模式或者仿真vt100模式,光标控制字符如下:
ANSI Compatible Mode
Cursor Movement Commands
Cursor up ESC [ Pn A
Cursor down ESC [ Pn B
Cursor forward (right) ESC [ Pn C
Cursor backward (left) ESC [ Pn D
Direct cursor addressing ESC [ Pl ; Pc H† or
ESC [ Pl ; Pc f†
Index ESC D
New line ESC E
Reverse index ESC M
Save cursor and attributes ESC 7
Restore cursor and attributes ESC 8
† Pl = line number; Pc = column number
NOTE: Pn refers to a decimal parameter expressed as a string of ASCII digits. Multiple parameters are separated by the semicolon character (0738). If a parameter is omitted or specified to be 0 the default parameter value is used. For the cursor movement commands, the default parameter value is 1.
Top
2 楼tpProgramer(tp编程者)回复于 2002-02-25 15:44:08 得分 0
??
明白?Top
3 楼ustc(Ustcer)回复于 2002-02-25 15:46:11 得分 0
详细点.Top
4 楼ustc(Ustcer)回复于 2002-02-25 15:46:12 得分 0
详细点.?Top
5 楼ustc(Ustcer)回复于 2002-02-25 15:47:16 得分 0
我的QQ 58546850 和我联系!Top
6 楼111222(www.111222.cn)回复于 2002-02-26 16:24:09 得分 0
只需要人民币20元,
你就可以获得本灌水机的程序和Visual C++源代码,
并获得永久性技术支持。
还等什么?灌水等着你!
就在今夜!元宵佳节!
Top




