当前位置:网站首页>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);
边栏推荐
- Three. JS introduction learning notes 12: the model moves along any trajectory line
- Iterator and for of.. loop
- Three. Introduction to JS learning notes 17: mouse control of 3D model rotation of JSON file
- Three. JS introductory learning notes 04: external model import - no material obj model
- Shader_ Animation sequence frame
- The significance of XOR in embedded C language
- It's different for rich people to buy a house
- A JS script can be directly put into the browser to perform operations
- Please supervise the 2022 plan
- Cut ffmpeg as needed, and use emscripten to compile and run
猜你喜欢

A wave of open source notebooks is coming

unnamed prototyped parameters not allowed when body is present

航运船公司人工智能AI产品成熟化标准化规模应用,全球港航人工智能/集装箱人工智能领军者CIMC中集飞瞳,打造国际航运智能化标杆
Notification uses full resolution

Three. JS introductory learning notes 08:orbitcontrols JS plug-in - mouse control model rotation, zoom in, zoom out, translation, etc

After UE4 is packaged, mesh has no material problem

企业级日志分析系统ELK

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

How does geojson data merge the boundaries of regions?

JS array foreach source code parsing
随机推荐
Numpy -- data cleaning
Wireless sensor networks -- ZigBee and 6LoWPAN
Bidding announcement: Panjin people's Hospital Panjin hospital database maintenance project
Unity的三种单例模式(饿汉,懒汉,MonoBehaviour)
The "go to definition" in VS2010 does not respond or prompts the solution of "symbol not found"
C Alibaba cloud OSS file upload, download and other operations (unity is available)
C4D learning notes 2- animation - timeline and time function
Xingruige database was shortlisted as the "typical solution for information technology application and innovation in Fujian Province in 2021"
Three. JS introduction learning notes 12: the model moves along any trajectory line
2022第四届中国(济南)国际智慧养老产业展览会,山东老博会
安科瑞电网智能化发展的必然趋势电力系统采用微机保护装置是
TS typescript type declaration special declaration field number is handled when the key key
Webgl texture
There are many ways to realize the pause function in JS
【花雕体验】15 尝试搭建Beetle ESP32 C3之Arduino开发环境
How does geojson data merge the boundaries of regions?
Unity drawing plug-in = = [support the update of the original atlas]
Dotween -- ease function
Three. JS introductory learning notes 03: perspective projection camera
一大波开源小抄来袭