当前位置:网站首页>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);
边栏推荐
- Unity的三种单例模式(饿汉,懒汉,MonoBehaviour)
- webgl_ Enter the three-dimensional world (2)
- 招标公告:2022年云南联通gbase数据库维保公开比选项目(第二次)比选公告
- leetcode 241. Different ways to add parentheses design priority for operational expressions (medium)
- Spin animation of Cocos performance optimization
- Three. Introduction to JS learning notes 17: mouse control of 3D model rotation of JSON file
- [wechat applet] Chapter (5): basic API interface of wechat applet
- Keil5 does not support online simulation of STM32 F0 series
- C Alibaba cloud OSS file upload, download and other operations (unity is available)
- Particle effect for ugui
猜你喜欢

Postman generate timestamp, future timestamp

LeetCode2_ Add two numbers

Xingruige database was shortlisted as the "typical solution for information technology application and innovation in Fujian Province in 2021"
通知Notification使用全解析

SPI master RX time out interrupt

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

深度之眼(七)——矩阵的初等变换(附:数模一些模型的解释)

Async and await

webgl_ Enter the three-dimensional world (1)

OpenGL's distinction and understanding of VAO, VBO and EBO
随机推荐
Webgl texture
尤雨溪,来了!
AE learning 02: timeline
Shader basic UV operations, translation, rotation, scaling
Spin animation of Cocos performance optimization
Three. JS introductory learning notes 08:orbitcontrols JS plug-in - mouse control model rotation, zoom in, zoom out, translation, etc
Syntaxhighlight highlights the right scroll bar
Eye of depth (VII) -- Elementary Transformation of matrix (attachment: explanation of some mathematical models)
The "go to definition" in VS2010 does not respond or prompts the solution of "symbol not found"
LeetCode2_ Add two numbers
Virtual memory, physical memory /ram what
Application example of infinite list [uigridview]
Three. JS introductory learning notes 0: illustration of how webgl and threejs work
Cocos makes Scrollview to realize the effect of zooming in the middle and zooming out on both sides
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"?
Three. JS introductory learning notes 04: external model import - no material obj model
C Alibaba cloud OSS file upload, download and other operations (unity is available)
航运船公司人工智能AI产品成熟化标准化规模应用,全球港航人工智能/集装箱人工智能领军者CIMC中集飞瞳,打造国际航运智能化标杆
SysOM 案例解析:消失的内存都去哪了 !| 龙蜥技术
Create lib Library in keil and use lib Library