当前位置:网站首页>如何在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);
边栏推荐
- Shader Language
- 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
- Oracle control file loss recovery archive mode method
- 银行需要搭建智能客服模块的中台能力,驱动全场景智能客服务升级
- When opening the system window under UE4 shipping, the problem of crash is attached with the plug-in download address
- TS as a general cache method
- 【Markdown语法高级】让你的博客更精彩(四:设置字体样式以及颜色对照表)
- JS array foreach source code parsing
- Annexb and avcc are two methods of data segmentation in decoding
- Three. Introduction to JS learning notes 17: mouse control of 3D model rotation of JSON file
猜你喜欢

【数字IC验证快速入门】23、SystemVerilog项目实践之AHB-SRAMC(3)(AHB协议基本要点)

webgl_ Enter the three-dimensional world (2)

Streaming end, server end, player end

Vertex shader to slice shader procedure, varying variable
Introduction of mongod management database method

HPDC smart base Talent Development Summit essay

【数字IC验证快速入门】25、SystemVerilog项目实践之AHB-SRAMC(5)(AHB 重点回顾,要点提炼)

How to create Apple Developer personal account P8 certificate
使用Scrapy框架爬取网页并保存到Mysql的实现

numpy--疫情数据分析案例
随机推荐
Three. JS introductory learning notes 11:three JS group composite object
HW primary flow monitoring, what should we do
webgl_ Graphic transformation (rotation, translation, zoom)
The significance of XOR in embedded C language
JS array foreach source code parsing
Iterator and for of.. loop
Create lib Library in keil and use lib Library
Simple understanding and application of TS generics
Pit avoidance: description of null values in in and not in SQL
Vertex shader to slice shader procedure, varying variable
numpy--疫情数据分析案例
Three. JS introductory learning notes 15: threejs frame animation module
Three. JS introductory learning notes 08:orbitcontrols JS plug-in - mouse control model rotation, zoom in, zoom out, translation, etc
How to release NFT in batches in opensea (rinkeby test network)
Cocos creator collision and collision callback do not take effect
How to understand that binary complement represents negative numbers
OpenGL's distinction and understanding of VAO, VBO and EBO
OpenGL common functions
A wave of open source notebooks is coming
Three. JS introductory learning notes 10:three JS grid