当前位置:网站首页>如何在shell中实现 backspace
如何在shell中实现 backspace
2022-07-07 13:28:00 【__pop_】
man ascii 可 查到
Oct Dec Hex Char
───────────────────────────────────────────
010 8 08 BS '\b' (backspace)
040 32 20 SPACE
177 127 7F DEL
这三个字符就是我们关注的对象
- backspace 涉及的两侧
发起侧
按下 物理Backspace 按键
操作侧 // xshell 对应操作侧
消掉最后的字符
// 大概流程是 操作侧监听到了 发起侧的动作(涉及到一个putchar)
// 操作侧 消掉最后的字符 (涉及到三个putchar)
实际操作
发起侧
putchar(0x7F);
操作侧
putchar(0x08);
putchar(0x20);
putchar(0x08);
边栏推荐
- HPDC smart base Talent Development Summit essay
- C4D learning notes 3- animation - animation rendering process case
- Connecting FTP server tutorial
- 使用Scrapy框架爬取网页并保存到Mysql的实现
- The difference between full-time graduate students and part-time graduate students!
- Align individual elements to the right under flex layout
- HW primary flow monitoring, what should we do
- Super signature principle (fully automated super signature) [Yun Xiaoduo]
- Nacos conformance protocol cp/ap/jraft/distro protocol
- 【数字IC验证快速入门】29、SystemVerilog项目实践之AHB-SRAMC(9)(AHB-SRAMC SVTB Overview)
猜你喜欢

C4D learning notes 2- animation - timeline and time function

Three. JS introductory learning notes 04: external model import - no material obj model

Getting started with webgl (2)

webgl_ Enter the three-dimensional world (2)

Three. JS introductory learning notes 10:three JS grid

银行需要搭建智能客服模块的中台能力,驱动全场景智能客服务升级

The bank needs to build the middle office capability of the intelligent customer service module to drive the upgrade of the whole scene intelligent customer service

Getting started with webgl (4)

LeetCode2_ Add two numbers
![[quick start of Digital IC Verification] 20. Basic grammar of SystemVerilog learning 7 (coverage driven... Including practical exercises)](/img/d3/cab8a1cba3c8d8107ce4a95f328d36.png)
[quick start of Digital IC Verification] 20. Basic grammar of SystemVerilog learning 7 (coverage driven... Including practical exercises)
随机推荐
After UE4 is packaged, mesh has no material problem
【數字IC驗證快速入門】20、SystemVerilog學習之基本語法7(覆蓋率驅動...內含實踐練習)
Three. JS introduction learning notes 12: the model moves along any trajectory line
Three. JS introductory learning notes 13: animation learning
Three. JS introductory learning notes 15: threejs frame animation module
持续创作,还得靠它!
Three. JS introductory learning notes 11:three JS group composite object
Mesh merging under ue4/ue5 runtime
Three. JS introductory learning notes 08:orbitcontrols JS plug-in - mouse control model rotation, zoom in, zoom out, translation, etc
Window环境下配置Mongodb数据库
Use cpolar to build a business website (2)
Steps to create P8 certificate and warehousing account
Iterator and for of.. loop
Three. Introduction to JS learning notes 17: mouse control of 3D model rotation of JSON file
webgl_ Enter the three-dimensional world (1)
webgl_ Graphic transformation (rotation, translation, zoom)
一大波开源小抄来袭
Android -- jetpack: the difference between livedata setValue and postvalue
unnamed prototyped parameters not allowed when body is present
保证接口数据安全的10种方案