当前位置:网站首页>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);
边栏推荐
- 讲师征集令 | Apache SeaTunnel(Incubating) Meetup 分享嘉宾火热招募中!
- Summary of knowledge points of xlua hot update solution
- Vertex shader to slice shader procedure, varying variable
- Apache Doris刚“毕业”:为什么应关注这种SQL数据仓库?
- Notification uses full resolution
- Is it reliable to open an account on Tongda letter with your mobile phone? Is there any potential safety hazard in such stock speculation
- 航运船公司人工智能AI产品成熟化标准化规模应用,全球港航人工智能/集装箱人工智能领军者CIMC中集飞瞳,打造国际航运智能化标杆
- Gd32 F3 pin mapping problem SW interface cannot be burned
- 如何在shell中实现 backspace
- SysOM 案例解析:消失的内存都去哪了 !| 龙蜥技术
猜你喜欢
Dotween -- ease function
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"?
Tkinter after how to refresh data and cancel refreshing
Numpy -- epidemic data analysis case
OpenGL's distinction and understanding of VAO, VBO and EBO
Postman generate timestamp, future timestamp
无线传感器网络--ZigBee和6LoWPAN
TS as a general cache method
Three. JS introductory learning notes 10:three JS grid
SPI master rx time out中断
随机推荐
Getting started with webgl (3)
星瑞格数据库入围“2021年度福建省信息技术应用创新典型解决方案”
过度依赖补助,大客户收款难,冲刺“国产数据库第一股”的达梦后劲有多足?
Apache Doris just "graduated": why should we pay attention to this kind of SQL data warehouse?
[excelexport], Excel to Lua, JSON, XML development tool
Create lib Library in keil and use lib Library
2022第四届中国(济南)国际智慧养老产业展览会,山东老博会
When opening the system window under UE4 shipping, the problem of crash is attached with the plug-in download address
Iterator and for of.. loop
[wechat applet] Chapter (5): basic API interface of wechat applet
一大波开源小抄来袭
C4D learning notes 1- animation - animation key frames
Three. JS introductory learning notes 07: external model import -c4d to JSON file for web pages -fbx import
Is it reliable to open an account on Tongda letter with your mobile phone? Is there any potential safety hazard in such stock speculation
Aerospace Hongtu information won the bid for the database system research and development project of a unit in Urumqi
Syntax of generator function (state machine)
Shader basic UV operations, translation, rotation, scaling
Getting started with webgl (2)
Unity的三种单例模式(饿汉,懒汉,MonoBehaviour)
Eye of depth (VI) -- inverse of matrix (attachment: some ideas of logistic model)