当前位置:网站首页>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);
边栏推荐
- Async and await
- 持续创作,还得靠它!
- hellogolang
- Three. Introduction to JS learning notes 17: mouse control of 3D model rotation of JSON file
- Three. JS introductory learning notes 11:three JS group composite object
- 神经网络c语言中的指针是怎么回事
- The inevitable trend of the intelligent development of ankerui power grid is that microcomputer protection devices are used in power systems
- Apache Doris刚“毕业”:为什么应关注这种SQL数据仓库?
- Use of SVN
- nodejs package. JSON version number ^ and~
猜你喜欢

分步式监控平台zabbix

保证接口数据安全的10种方案

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"?

Create lib Library in keil and use lib Library

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

分步式監控平臺zabbix

企业级日志分析系统ELK

Whole process analysis of unity3d rendering pipeline

OpenGL's distinction and understanding of VAO, VBO and EBO

How does geojson data merge the boundaries of regions?
随机推荐
Use moviepy Editor clips videos and intercepts video clips in batches
numpy--疫情数据分析案例
Three. JS introductory learning notes 19: how to import FBX static model
Wireless sensor networks -- ZigBee and 6LoWPAN
Detailed explanation of Cocos creator 2.4.0 rendering process
./ Functions of configure, make and make install
航天宏图信息中标乌鲁木齐某单位数据库系统研发项目
Asynchronous application of generator function
Use of SVN
SPI master rx time out中断
How to understand that binary complement represents negative numbers
SysOM 案例解析:消失的内存都去哪了 !| 龙蜥技术
leetcode 241. Different ways to add parentheses design priority for operational expressions (medium)
LeetCode3_ Longest substring without duplicate characters
The "go to definition" in VS2010 does not respond or prompts the solution of "symbol not found"
JS array foreach source code parsing
Detailed explanation of unity hot update knowledge points and introduction to common solution principles
When opening the system window under UE4 shipping, the problem of crash is attached with the plug-in download address
一个普通人除了去工厂上班赚钱,还能干什么工作?
Three. JS introductory learning notes 11:three JS group composite object