当前位置:网站首页>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);
边栏推荐
- 持续创作,还得靠它!
- AE learning 02: timeline
- 神经网络c语言中的指针是怎么回事
- leetcode 241. Different ways to add parentheses design priority for operational expressions (medium)
- Cut ffmpeg as needed, and use emscripten to compile and run
- postman生成时间戳,未来时间戳
- 尤雨溪,来了!
- A wave of open source notebooks is coming
- 2022山东智慧养老展,适老穿戴设备展,养老展,山东老博会
- Three. JS introductory learning notes 00: coordinate system, camera (temporarily understood)
猜你喜欢

Keil5 does not support online simulation of STM32 F0 series

Wireless sensor networks -- ZigBee and 6LoWPAN

Async and await

Getting started with webgl (1)

SPI master rx time out中断

持续创作,还得靠它!

Shipping companies' AI products are mature, standardized and applied on a large scale. CIMC, the global leader in port and shipping AI / container AI, has built a benchmark for international shipping

C4D learning notes 3- animation - animation rendering process case

分步式监控平台zabbix

【微信小程序】Chapter(5):微信小程序基础API接口
随机推荐
LeetCode3_ Longest substring without duplicate characters
Eye of depth (VI) -- inverse of matrix (attachment: some ideas of logistic model)
Numpy --- basic learning notes
2022第四届中国(济南)国际智慧养老产业展览会,山东老博会
Keil5 does not support online simulation of STM32 F0 series
[wechat applet] Chapter (5): basic API interface of wechat applet
Three. JS introductory learning notes 04: external model import - no material obj model
Ue4/ue5 multi thread development attachment plug-in download address
AE learning 01: AE complete project summary
Cut ffmpeg as needed, and use emscripten to compile and run
Three. JS introductory learning notes 11:three JS group composite object
Three. JS introductory learning notes 03: perspective projection camera
强化实时数据管理,英方软件助力医保平台安全建设
The inevitable trend of the intelligent development of ankerui power grid is that microcomputer protection devices are used in power systems
喜讯!科蓝SUNDB数据库与鸿数科技隐私数据保护管理软件完成兼容性适配
The rebound problem of using Scrollview in cocos Creator
How does geojson data merge the boundaries of regions?
Function: JS Click to copy content function
Gd32 F3 pin mapping problem SW interface cannot be burned
The "go to definition" in VS2010 does not respond or prompts the solution of "symbol not found"