当前位置:网站首页>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);
边栏推荐
- Simple understanding and application of TS generics
- 航运船公司人工智能AI产品成熟化标准化规模应用,全球港航人工智能/集装箱人工智能领军者CIMC中集飞瞳,打造国际航运智能化标杆
- 10 schemes to ensure interface data security
- Numpy -- data cleaning
- AE learning 01: AE complete project summary
- Application example of infinite list [uigridview]
- Summary of knowledge points of xlua hot update solution
- Write sequence frame animation with shader
- Spin animation of Cocos performance optimization
- [wechat applet] Chapter (5): basic API interface of wechat applet
猜你喜欢

It's different for rich people to buy a house

Write sequence frame animation with shader

Virtual memory, physical memory /ram what

Unity3D_ Class fishing project, control the distance between collision walls to adapt to different models

C4D learning notes 2- animation - timeline and time function

Async and await

SPI master rx time out中断

【花雕体验】15 尝试搭建Beetle ESP32 C3之Arduino开发环境

Rongyun won the 2022 China Xinchuang digital office portal excellence product award!

postman生成时间戳,未来时间戳
随机推荐
The unity vector rotates at a point
招标公告:2022年云南联通gbase数据库维保公开比选项目(第二次)比选公告
Is it reliable to open an account on Tongda letter with your mobile phone? Is there any potential safety hazard in such stock speculation
Three. JS introductory learning notes 19: how to import FBX static model
How does geojson data merge the boundaries of regions?
UE4 exports the picture + text combination diagram through ucanvasrendertarget2d
Learn good-looking custom scroll bars in 1 minute
2022第四届中国(济南)国际智慧养老产业展览会,山东老博会
When opening the system window under UE4 shipping, the problem of crash is attached with the plug-in download address
Spin animation of Cocos performance optimization
Mysql database backup script
OpenGL common functions
Three. JS introductory learning notes 18: how to export JSON files with Blender
如何在shell中实现 backspace
LeetCode3_ Longest substring without duplicate characters
AE learning 01: AE complete project summary
numpy---基础学习笔记
After UE4 is packaged, mesh has no material problem
Enterprise log analysis system elk
webgl_ Enter the three-dimensional world (1)