Delete character
The delete
.Terminal emulators may produce DEL when ← Backspace key or Control+← Backspace or Control+? are typed.
History
· | NUL | ||||||||||
• | · | • | • | CR | |||||||
• | · | • | LF
| ||||||||
• | • | • | • | · | • | • | • | DEL | |||
• | · | SP | |||||||||
"Delete" along with some other ASCII control characters and space as they appear on punched tape |
This code was originally used to mark deleted characters on punched tape, since any character could be changed to all ones by punching holes everywhere. If a character was punched erroneously, punching out all seven bits caused this position to be ignored or deleted.[2][3] In hexadecimal, this is 7F to rub out 7 bits (FF to rubout 8 bits was used for 8-bit codes). This character could also be used as padding to slow down printing after newlines, though the all-zero NUL was more often used.
The
Other terminals designed for systems that did not have a history of using Teletypes would usually make a key at this position send BS, leading to much confusion. Unix, in particular, had an annoying problem in that it could only be programmed to erase the previous character for one of these (not both), thus requiring the user to reconfigure the terminal driver for each brand of terminal. Depending on the type of terminal the designer used, software would sometimes make the shortcuts Ctrl+H or Ctrl+? do something, even though these sent the same code as BS and DEL, assuming the backspace key was sending the other code.
A key marked Backspace ← that sends BS is by far the most common on modern terminals and emulators. To make sure they don't delete backwards, the key marked "Delete" on many terminals does not send DEL and instead sends an escape sequence such as ^[[3~
.[7]
Current use
See also
References
- .
- ISBN 9780132542883.
- ^ LaFarr (18 August 2006). ""Paper Tape" First Machinable I/O".
- ^ "VT100 Family of Video Terminals". vt100.net.
- ^ "VT100 User Guide- Chapter 3 – Table 3-4 Function Key Codes". vt100.net. Archived from the original on 2016-03-14. Retrieved 2015-04-12.
- ^ "VT510 Video Terminal Programmer Information – Chapter 5 – ANSI Control Functions". vt100.net.
- ^ "VT510 Video Terminal Programmer Information – Chapter 8 – Keyboard Processing". vt100.net. Archived from the original on 2016-03-04. Retrieved 2015-04-12.
- ^ "Keyboard scan code/Character code combinations - PC DOS Retro". Archived from the original on 2020-05-01. Retrieved 2020-04-19.
- ^ "Virtual-Key Codes (Winuser.h) - Win32 apps". 22 June 2022.
- ^ "Shortcuts - Notepad CTRL-Backspace behavior".
- ^ "The New and Improved Windows 10 Notepad: Useful Tips and Features". 23 November 2018.