当前位置:网站首页>如何在shell中实现 backspace
如何在shell中实现 backspace
2022-07-07 13:28:00 【__pop_】
man ascii 可 查到
Oct Dec Hex Char
───────────────────────────────────────────
010 8 08 BS '\b' (backspace)
040 32 20 SPACE
177 127 7F DEL
这三个字符就是我们关注的对象
- backspace 涉及的两侧
发起侧
按下 物理Backspace 按键
操作侧 // xshell 对应操作侧
消掉最后的字符
// 大概流程是 操作侧监听到了 发起侧的动作(涉及到一个putchar)
// 操作侧 消掉最后的字符 (涉及到三个putchar)
实际操作
发起侧
putchar(0x7F);
操作侧
putchar(0x08);
putchar(0x20);
putchar(0x08);
边栏推荐
- Super simple and fully automated generation super signature system (cloud Xiaoduo minclouds.com cloud service instance), free application in-house test app distribution and hosting platform, maintenan
- The significance of XOR in embedded C language
- Super signature principle (fully automated super signature) [Yun Xiaoduo]
- [quick start of Digital IC Verification] 25. AHB sramc of SystemVerilog project practice (5) (AHB key review, key points refining)
- Three. Introduction to JS learning notes 17: mouse control of 3D model rotation of JSON file
- 【数字IC验证快速入门】20、SystemVerilog学习之基本语法7(覆盖率驱动...内含实践练习)
- 2022 all open source enterprise card issuing network repair short website and other bugs_ 2022 enterprise level multi merchant card issuing platform source code
- Vertex shader to slice shader procedure, varying variable
- Using eating in cocos Creator
- Syntax of generator function (state machine)
猜你喜欢
Window环境下配置Mongodb数据库
[quick start of Digital IC Verification] 22. Ahb-sramc of SystemVerilog project practice (2) (Introduction to AMBA bus)
【数字IC验证快速入门】26、SystemVerilog项目实践之AHB-SRAMC(6)(APB协议基本要点)
[quick start of Digital IC Verification] 18. Basic grammar of SystemVerilog learning 5 (concurrent threads... Including practical exercises)
[wechat applet] Chapter (5): basic API interface of wechat applet
Three. JS introductory learning notes 04: external model import - no material obj model
Cocos creator collision and collision callback do not take effect
Whole process analysis of unity3d rendering pipeline
2. Heap sort "hard to understand sort"
Use cpolar to build a business website (2)
随机推荐
【数字IC验证快速入门】18、SystemVerilog学习之基本语法5(并发线程...内含实践练习)
[quick start of Digital IC Verification] 18. Basic grammar of SystemVerilog learning 5 (concurrent threads... Including practical exercises)
Asynchronous application of generator function
numpy--数据清洗
Cut ffmpeg as needed, and use emscripten to compile and run
JS array foreach source code parsing
nodejs package. JSON version number ^ and~
尤雨溪,来了!
Use of SVN
Three. JS introductory learning notes 00: coordinate system, camera (temporarily understood)
The rebound problem of using Scrollview in cocos Creator
The bank needs to build the middle office capability of the intelligent customer service module to drive the upgrade of the whole scene intelligent customer service
2. Basic knowledge of golang
2. Heap sort "hard to understand sort"
大表delete删数据导致数据库异常解决
【Markdown语法高级】让你的博客更精彩(四:设置字体样式以及颜色对照表)
Super simple and fully automated generation super signature system (cloud Xiaoduo minclouds.com cloud service instance), free application in-house test app distribution and hosting platform, maintenan
【數字IC驗證快速入門】26、SystemVerilog項目實踐之AHB-SRAMC(6)(APB協議基本要點)
使用Scrapy框架爬取网页并保存到Mysql的实现
Pit avoidance: description of null values in in and not in SQL