方式 -- TAB 可以采用连续 2 个或者更多, 但此处暂时只研究 仅 1 个 TAB复制代码
- echo;TAB若干退格
当回退之前光标的水平坐标对 8 不是余 0 时, "每多回退一行需退格数" 需要更大的数字, 计算方式暂不明确复制代码
- "每多回退一行需退格数" = ceil ( COLS / 8 )
回退前光标水平坐标[最左位置为0,半角字符占1单位,汉字占两单位] | "每多回退一行需退格数" | "回退行0" | "回退行1" | "回退行2" | "回退行3" |
0 | 10 | 2 | 12 | 22 | 32 |
1 | 11 | 2 | 13 | 24 | 35 |
2 | 13 | 2 | 15 | 28 | 41 |
3 | 15 | 2 | 17 | 32 | 47 |
4 | 19 | 3 | 22 | 41 | 60 |
5 | 25 | 3 | 28 | 53 | 78 |
6 | 37 | 5 | 42 | 79 | 116 |
7 | 74 | 9 | 83 | 157 | 231 |
8 | 10 | 3 | 13 | 23 | 33 |
9 | 11 | 3 | 14 | 25 | 36 |
10 | 13 | 3 | 16 | 29 | 42 |
11 | 15 | 4 | 19 | 34 | 49 |
12 | 19 | 5 | 24 | 43 | 62 |
13 | 25 | 6 | 31 | 56 | 81 |
14 | 37 | 9 | 46 | 83 | 120 |
15 | 74 | 17 | 91 | 165 | 239 |
16 | 10 | 4 | 14 | 24 | 34 |
17 | 11 | 4 | 15 | 26 | 37 |
18 | 13 | 5 | 18 | 31 | 44 |
19 | 15 | 5 | 20 | 35 | 50 |
20 | 19 | 7 | 26 | 45 | 64 |
21 | 25 | 9 | 34 | 59 | 84 |
22 | 37 | 13 | 50 | 87 | 124 |
23 | 74 | 25 | 99 | 173 | 247 |
24 | 10 | 5 | 15 | 25 | 35 |
25 | 11 | 5 | 16 | 27 | 38 |
26 | 13 | 6 | 19 | 32 | 45 |
27 | 15 | 7 | 22 | 37 | 52 |
28 | 19 | 9 | 28 | 47 | 66 |
29 | 25 | 11 | 36 | 61 | 86 |
30 | 37 | 17 | 54 | 91 | 128 |
31 | 74 | 33 | 107 | 181 | 255 |
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |