ArticleslgStudy

computer science

Delete character

Delete character is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Delete character rather than just read about it. In short: The delete control character (also called DEL or rubout) is the last character in the ASCII repertoire, with the code 127. It is supposed to do nothing and was created so that incorrect characters on paper tape could be erased.

Key takeaways

  • Delete character belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Delete character to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Delete character from memory before moving on to harder problems.

Reference excerpt

The delete control character (also called DEL or rubout) is the last character in the ASCII repertoire, with the code 127. It is supposed to do nothing and was created so that incorrect characters on paper tape could be erased. It is denoted as ^? in caret notation and is U+007F in Unicode. Terminal emulators may produce DEL when ← Backspace key or Control+← Backspace or Control+? are typed.

History

This code was originally used to mark deleted characters on punched tape, since any character could be changed to all 1s by punching holes everywhere. If a character was punched erroneously, punching out all seven bits caused this position to be ignored or deleted. 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 Teletype Model 33 provided a key labelled RUB OUT to punch this character (after the user backed up the tape using another button), and did not provide a key that produced the backspace character (BS). Therefore, a number of less expensive computer systems that used Teletypes used this key (and thus the delete code) to ignore the previous mis-typed character. Video terminals designed to replace the teletype then had to place a key that produced this code where backspace would be expected, in particular in products from Digital Equipment Corporation. On VT100 compatible terminals, this is the character generated by the key labeled Delete. On later terminals, such as the VT510, the key is labeled ⌫ (called backarrow in the manual) and by default sent DEL, but could be set up to send BS. 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 a 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 ensure text is not deleted backwards, the key marked "Delete" on many terminals does not send DEL and instead sends an escape sequence such as ^[[3~.

Current use Unix-like operating systems can still use it as the erase character, i.e., to delete the previous character in the line mode. The terminal driver still cannot be programmed to take both this and backspace: one must be chosen. However, most modern programs bypass this and use libraries such as Readline which accepts both codes. Most Unix terminal emulators can be configured to send either delete or backspace when the backspace key is pressed. DOS/Windows never used this character in any way. The BIOS keyboard driver produced backspace when the backspace key was typed and NUL with scan code 0x53 when the delete key was typed. In Windows, the delete key maps to VK_DELETE (0x2E). EGA/VGA fonts, as fonts used by Win32 console, usually have the "house" symbol ⌂ at 127 (0x7F) code point (see Code page 437 for details). However, its legacy can be seen in parts of the Windows operating system: as an example, Control+← Backspace in Notepad and File Explorer used to insert the delete character until it was changed in version 1809 to make it delete the previous word, as it does in most modern applications.

See also Eight Ones Backspace

References

Worked examples

Example 1 — a first encounter with Delete character

Start with the simplest possible case. Write down what Delete character claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Delete character before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Delete character ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Delete character

In research
Delete character appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Delete character in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Delete character is common in secondary-school and first-year university syllabi. It links to neighbouring topics Control characters, History of computing, Text user interface, so understanding it makes those chapters shorter.
In everyday life
Look for Delete character outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Delete character” →

How to study Delete character in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Delete character means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Delete character out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Delete character in simple terms?

The delete control character (also called DEL or rubout) is the last character in the ASCII repertoire, with the code 127. It is supposed to do nothing and was created so that incorrect characters on paper tape could be erased.

Why does Delete character matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Delete character?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Delete character.

Tags

  • Control characters
  • History of computing
  • Text user interface

Keep exploring