当前位置:网站首页>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);
边栏推荐
- JS array foreach source code parsing
- 航天宏图信息中标乌鲁木齐某单位数据库系统研发项目
- The "go to definition" in VS2010 does not respond or prompts the solution of "symbol not found"
- 10 schemes to ensure interface data security
- Learn good-looking custom scroll bars in 1 minute
- 保证接口数据安全的10种方案
- The significance of XOR in embedded C language
- Iterator and for of.. loop
- Webgl texture
- After UE4 is packaged, mesh has no material problem
猜你喜欢
Three. JS introductory learning notes 04: external model import - no material obj model
UE4 exports the picture + text combination diagram through ucanvasrendertarget2d
强化实时数据管理,英方软件助力医保平台安全建设
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"?
Keil5 does not support online simulation of STM32 F0 series
Application example of infinite list [uigridview]
Numpy -- epidemic data analysis case
Strengthen real-time data management, and the British software helps the security construction of the medical insurance platform
分步式监控平台zabbix
Getting started with webgl (2)
随机推荐
2022第四届中国(济南)国际智慧养老产业展览会,山东老博会
Keil5 does not support online simulation of STM32 F0 series
A JS script can be directly put into the browser to perform operations
numpy--疫情数据分析案例
Tkinter after how to refresh data and cancel refreshing
Three. JS introductory learning notes 15: threejs frame animation module
Aerospace Hongtu information won the bid for the database system research and development project of a unit in Urumqi
unnamed prototyped parameters not allowed when body is present
Eye of depth (VI) -- inverse of matrix (attachment: some ideas of logistic model)
喜讯!科蓝SUNDB数据库与鸿数科技隐私数据保护管理软件完成兼容性适配
Notification uses full resolution
如何在shell中实现 backspace
Shader Language
Three. JS introductory learning notes 00: coordinate system, camera (temporarily understood)
webgl_ Enter the three-dimensional world (2)
Regular expression string
Vite path alias @ configuration
Introduction to pyGame games
Use moviepy Editor clips videos and intercepts video clips in batches
Plate - forme de surveillance par étapes zabbix