但是我不太明白"\033[1H\033[2J"的意思,如果谁知道,请给我解释一下,本人感恩不尽作者: MMMIX 时间: 2008-09-12 23:44
这个是 ANSI/VT100 Terminal Control Escape Sequences,见 http://www.termsys.demon.co.uk/vtansi.htm作者: liuxt 时间: 2008-09-13 01:20
谢谢
Move to Position ESC[row;colH Move the cursor to the (col, row) position. Note that the row comes before column; that is, y comes before x. Either col or row can be omitted. Row and column both start with "1," not zero. (1, 1) corresponds to the top-left corner of the screen.
Clear Screen ESC[2J Clear the whole screen and position the cursor to the top left corner.