当前位置:网站首页>How to implement backspace in shell
How to implement backspace in shell
2022-07-07 16:01:00 【__ pop_】
man ascii can find out
Oct Dec Hex Char
───────────────────────────────────────────
010 8 08 BS '\b' (backspace)
040 32 20 SPACE
177 127 7F DEL
These three characters are our focus
- backspace Both sides involved
Initiating side
Press down Physics Backspace Key
Operation side // xshell Corresponding to the operation side
Erase the last character
// The general process is The operator heard Initiate side action ( It involves a putchar)
// Operation side Erase the last character ( It involves three putchar)
Actual operation
Initiating side
putchar(0x7F);
Operation side
putchar(0x08);
putchar(0x20);
putchar(0x08);
边栏推荐
- The inevitable trend of the intelligent development of ankerui power grid is that microcomputer protection devices are used in power systems
- LeetCode2_ Add two numbers
- Regular expression string
- hellogolang
- Use moviepy Editor clips videos and intercepts video clips in batches
- 招标公告:盘锦市人民医院盘锦医院数据库维保项目
- Notification uses full resolution
- Cocos creator collision and collision callback do not take effect
- Async and await
- 持续创作,还得靠它!
猜你喜欢
The download button and debug button in keil are grayed out
AB package details in unity (super detail, features, packaging, loading, manager)
10 schemes to ensure interface data security
Excessive dependence on subsidies, difficult collection of key customers, and how strong is the potential to reach the dream of "the first share of domestic databases"?
航運船公司人工智能AI產品成熟化標准化規模應用,全球港航人工智能/集裝箱人工智能領軍者CIMC中集飛瞳,打造國際航運智能化標杆
Webgl texture
webgl_ Enter the three-dimensional world (2)
numpy---基础学习笔记
Three. JS introductory learning notes 08:orbitcontrols JS plug-in - mouse control model rotation, zoom in, zoom out, translation, etc
Application example of infinite list [uigridview]
随机推荐
TS typescript type declaration special declaration field number is handled when the key key
There are many ways to realize the pause function in JS
Apache Doris just "graduated": why should we pay attention to this kind of SQL data warehouse?
通知Notification使用全解析
Points for attention in porting gd32 F4 series programs to gd32 F3 series
Postman generate timestamp, future timestamp
【微信小程序】Chapter(5):微信小程序基础API接口
Three. JS introductory learning notes 08:orbitcontrols JS plug-in - mouse control model rotation, zoom in, zoom out, translation, etc
Particle effect for ugui
SPI master rx time out中断
Three. JS introductory learning notes 11:three JS group composite object
Three. JS introductory learning notes 10:three JS grid
Summary of knowledge points of xlua hot update solution
After UE4 is packaged, mesh has no material problem
C4D learning notes 1- animation - animation key frames
Strengthen real-time data management, and the British software helps the security construction of the medical insurance platform
Is it reliable to open an account on Tongda letter with your mobile phone? Is there any potential safety hazard in such stock speculation
It's different for rich people to buy a house
A wave of open source notebooks is coming
Three. JS introductory learning notes 13: animation learning