当前位置:网站首页>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);
边栏推荐
- Migration and reprint
- Three. JS introductory learning notes 05: external model import -c4d into JSON file for web pages
- Three. JS introductory learning notes 10:three JS grid
- Syntax of generator function (state machine)
- 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
- nodejs package. JSON version number ^ and~
- 神经网络c语言中的指针是怎么回事
- 一个普通人除了去工厂上班赚钱,还能干什么工作?
- U3D_ Infinite Bessel curve
- Syntaxhighlight highlights the right scroll bar
猜你喜欢

Annexb and avcc are two methods of data segmentation in decoding

AE learning 01: AE complete project summary

Plate - forme de surveillance par étapes zabbix

Streaming end, server end, player end

unnamed prototyped parameters not allowed when body is present

Xingruige database was shortlisted as the "typical solution for information technology application and innovation in Fujian Province in 2021"

numpy--疫情数据分析案例

分步式監控平臺zabbix

Three. JS introductory learning notes 19: how to import FBX static model

无线传感器网络--ZigBee和6LoWPAN
随机推荐
Matlab experience summary
webgl_ Graphic transformation (rotation, translation, zoom)
尤雨溪,来了!
Cocos uses custom material to display problems
SysOM 案例解析:消失的内存都去哪了 !| 龙蜥技术
Please supervise the 2022 plan
Unity的三种单例模式(饿汉,懒汉,MonoBehaviour)
Spin animation of Cocos performance optimization
Three. JS introductory learning notes 11:three JS group composite object
分步式监控平台zabbix
OpenGL common functions
Numpy -- epidemic data analysis case
numpy--疫情数据分析案例
Three. JS introductory learning notes 15: threejs frame animation module
Three singleton modes of unity (hungry man, lazy man, monobehavior)
强化实时数据管理,英方软件助力医保平台安全建设
hellogolang
Is it reliable to open an account on Tongda letter with your mobile phone? Is there any potential safety hazard in such stock speculation
2022山东智慧养老展,适老穿戴设备展,养老展,山东老博会
Unity drawing plug-in = = [support the update of the original atlas]