[oeasy]python0067_ESC键进化历史_键盘演化过程_ANSI_控制序列_转义序列_CSI
简介:
[oeasy]python0067_ESC键进化历史_键盘演化过程_ANSI_控制序列_转义序列_CSI
光标位置
回忆上次内容
![](https://ucc.alicdn.com/images/user-upload-01/img_convert/73a2737fe3f1352533b2e635c9a90704.jpeg?x-oss-process=image/resize,w_1400/format,webp)
查询文档
![](https://ucc.alicdn.com/images/user-upload-01/img_convert/7d9e740aea3ebd19809ac991ae17ee34.png?x-oss-process=image/resize,w_1400/format,webp)
- 使用ctrl + shift + k实现
- esc效果
escape 跳出
![](https://ucc.alicdn.com/images/user-upload-01/img_convert/8d4085a9c501ee80169476019a6f2a71.jpeg?x-oss-process=image/resize,w_1400/format,webp)
键盘的进化过程
![](https://ucc.alicdn.com/images/user-upload-01/img_convert/796b7efc9618379d6fc1848bb0667bea.png?x-oss-process=image/resize,w_1400/format,webp)
位置的变化
- 可以退出主游戏
- 进行设置、存盘、读档、退出之类的菜单操作
![](https://ucc.alicdn.com/images/user-upload-01/img_convert/a2aa534b67ff664509f45852f510ee66.png?x-oss-process=image/resize,w_1400/format,webp)
标准键盘
![](https://ucc.alicdn.com/images/user-upload-01/img_convert/1162f03bbddbd28504b85524ef44b195.png?x-oss-process=image/resize,w_1400/format,webp)
escape
体现重要性
- 还要用边距和F1之类的拉开距离
行业标准
![](https://ucc.alicdn.com/images/user-upload-01/img_convert/71c2c4286ca48cbf8e7ba064913a30f9.png?x-oss-process=image/resize,w_1400/format,webp)
esc
![](https://ucc.alicdn.com/images/user-upload-01/img_convert/97e329a3cd16fe84574618a8bc1d0fe1.jpeg?x-oss-process=image/resize,w_1400/format,webp)
- (001 1011)2
- 再到ascii应用找一下esc?
ascii
![](https://ucc.alicdn.com/images/user-upload-01/img_convert/d6da30fb690fa38e363b9d3c7b8e27aa.jpeg?x-oss-process=image/resize,w_1400/format,webp)
1b
![](https://ucc.alicdn.com/images/user-upload-01/img_convert/c90ff5f2ea257bd4dfe87b878f935858.png?x-oss-process=image/resize,w_1400/format,webp)
![](https://ucc.alicdn.com/images/user-upload-01/img_convert/8e3e08d876b049a36753b4d31c653915.png?x-oss-process=image/resize,w_1400/format,webp)
不同形态
![](https://ucc.alicdn.com/images/user-upload-01/img_convert/9d50369c770acb5a4fdbd880b0b4d531.jpeg?x-oss-process=image/resize,w_1400/format,webp)
操作大全
![](https://ucc.alicdn.com/images/user-upload-01/img_convert/b9ed37115b00329add335a2cc33ae05f.png?x-oss-process=image/resize,w_1400/format,webp)
- Control Sequence Introducer
- 就是esc加[
\033
![](https://ucc.alicdn.com/images/user-upload-01/img_convert/8242b3189a8345ef3ecb6aae4f0534ee.png?x-oss-process=image/resize,w_1400/format,webp)
- \033[nA 光标上移 n 行
- \033[nB 光标下移 n 行
- \033[nC 光标右移 n 行
- \033[nD 光标左移 n 行
- \033[y;xH 设置光标位置
- \033[2J 清屏
- \033[K 清除从光标到行尾的内容
- \033[s 保存光标位置
- \033[u 恢复光标位置
- \033[?25l 隐藏光标
- \033[?25h 显示光标
- 我们先试试\033[2J
总结
![](https://ucc.alicdn.com/images/user-upload-01/img_convert/c22dcac90c308ed3ffb56b07680e950e.png?x-oss-process=image/resize,w_1400/format,webp)
- \033[y;xH 设置光标位置
- \033[2J 清屏
- 这到底怎么控制来着???🤔
- 我们下次再说!👋
- 蓝桥->https://www.lanqiao.cn/courses/3584
- github->https://github.com/overmind1980/oeasy-python-tutorial
- gitee->https://gitee.com/overmind1980/oeasypython
- 视频->https://www.bilibili.com/video/BV1CU4y1Z7gQ 作者:oeasy