当前位置:网站首页>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);
边栏推荐
- 山东老博会,2022中国智慧养老展会,智能化养老、适老科技展
- 航运船公司人工智能AI产品成熟化标准化规模应用,全球港航人工智能/集装箱人工智能领军者CIMC中集飞瞳,打造国际航运智能化标杆
- Postman generate timestamp, future timestamp
- 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"?
- Align individual elements to the right under flex layout
- U3D_ Infinite Bessel curve
- Plate - forme de surveillance par étapes zabbix
- webgl_ Enter the three-dimensional world (2)
- leetcode 241. Different Ways to Add Parentheses 为运算表达式设计优先级(中等)
- L'application à l'échelle de la normalisation mature des produits ai des compagnies maritimes, cimc, leader mondial de l'intelligence artificielle portuaire et maritime / intelligence artificielle des
猜你喜欢

C4D learning notes 1- animation - animation key frames

Numpy --- basic learning notes

喜讯!科蓝SUNDB数据库与鸿数科技隐私数据保护管理软件完成兼容性适配

SysOM 案例解析:消失的内存都去哪了 !| 龙蜥技术

Eye of depth (VI) -- inverse of matrix (attachment: some ideas of logistic model)

unnamed prototyped parameters not allowed when body is present

postman生成时间戳,未来时间戳

Syntax of generator function (state machine)

It's different for rich people to buy a house

Use of SVN
随机推荐
LeetCode2_ Add two numbers
Simple understanding and application of TS generics
The unity vector rotates at a point
Three. JS introductory learning notes 07: external model import -c4d to JSON file for web pages -fbx import
Tkinter after how to refresh data and cancel refreshing
招标公告:福建省农村信用社联合社数据库审计系统采购项目(重新招标)
Three. JS introductory learning notes 05: external model import -c4d into JSON file for web pages
Cocos makes Scrollview to realize the effect of zooming in the middle and zooming out on both sides
U3D_ Infinite Bessel curve
航运船公司人工智能AI产品成熟化标准化规模应用,全球港航人工智能/集装箱人工智能领军者CIMC中集飞瞳,打造国际航运智能化标杆
VS2005 strange breakpoint is invalid or member variable value cannot be viewed
Unity drawing plug-in = = [support the update of the original atlas]
L'application à l'échelle de la normalisation mature des produits ai des compagnies maritimes, cimc, leader mondial de l'intelligence artificielle portuaire et maritime / intelligence artificielle des
There are many ways to realize the pause function in JS
C4D learning notes 3- animation - animation rendering process case
Points for attention in porting gd32 F4 series programs to gd32 F3 series
山东老博会,2022中国智慧养老展会,智能化养老、适老科技展
The "go to definition" in VS2010 does not respond or prompts the solution of "symbol not found"
Three. JS introductory learning notes 04: external model import - no material obj model
Iterator and for of.. loop