BS (ASCII)
   HOME

TheInfoList



OR:

Backspace (, ⌫) is the keyboard key that in
typewriter A typewriter is a Machine, mechanical or electromechanical machine for typing characters. Typically, a typewriter has an array of Button (control), keys, and each one causes a different single character to be produced on paper by striking an i ...
s originally pushed the carriage one position backwards, and in modern computer systems typically moves the display cursor one position backwards,The meaning of "backwards" depends on the direction of the text, and could get complicated in text involving several bidirectional categories. deletes the character at that position, and shifts back any text after"after" here implies on the same logical
line of text In computing, a line is a unit of organization for text files. A line consists of a sequence of zero or more characters, usually displayed within a single horizontal sequence. The term comes directly from physical printing, where a line of t ...
that position by one character.


Nomenclature

Although the term "backspace" is the traditional name of the key which steps the carriage back and/orin some
correcting typewriter A typewriter is a mechanical or electromechanical machine for typing characters. Typically, a typewriter has an array of keys, and each one causes a different single character to be produced on paper by striking an inked ribbon selectively ag ...
s it did both
deletes the previous character, typically to the left of the cursor, the actual key may be labeled in a variety of ways, for example ''delete'', ''erase'', or with a left pointing arrow. A dedicated symbol for "backspace" exists as U+232B ⌫ but its use as a keyboard label is not universal. Some very early typewriters labeled this key the ''backspacer'' key. Backspace is distinct from the
delete key The delete key (often abbreviated del) is a button on most computer keyboards which is typically used to delete either (in text mode) the character ahead of or beneath the cursor, or (in GUI mode) the currently-selected object. The key is somet ...
, which in a
teletypewriter A teleprinter (teletypewriter, teletype or TTY) is an electromechanical device that can be used to send and receive typed messages through various communications channels, in both point-to-point and point-to-multipoint configurations. Init ...
would punch out all the holes in
punched paper tape Punch commonly refers to: * Punch (combat), a strike made using the hand closed into a fist * Punch (drink), a wide assortment of drinks, non-alcoholic or alcoholic, generally containing fruit or fruit juice Punch may also refer to: Places * ...
to strike out a character, and in modern computers deletes text at or ''following'' the cursor position. Also, the delete key often works as a generic command to remove an object (such as an image inside a document, or a file in a
file manager A file manager or file browser is a computer program that provides a user interface to manage computer files, files and folder (computing), folders. The most common Computer file#Operations, operations performed on files or groups of files incl ...
), while backspace usually does not. Full-size
Mac Mac or MAC may refer to: Common meanings * Mac (computer), a line of personal computers made by Apple Inc. * Mackintosh, a raincoat made of rubberized cloth * Mac, a prefix to surnames derived from Gaelic languages * McIntosh (apple), a Canadi ...
keyboards have two keys labeled ''delete''; a key that functions as a backspace key, and a key that functions as a delete key. Smaller Mac keyboards, such as laptop keyboards, have only a key that functions as a backspace key.


Combining characters

In someMany typewriters don't advance accent characters, thus no backspace is needed where the accent is typed ahead of the letter it is to be combined with. However, even with such machines, the backspace is still used to produce certain other characters, e.g. for combining "o" with "/" to make "ø". typewriters, a typist would, for example, type a lowercase letter A with acute accent (á) by typing a lowercase letter A, backspace, and then the acute accent key. This technique (also known as
overstrike In typography, overstrike is a method of printing characters that are missing from the printer's character set. The character is created by placing one character on another one – for example, overstriking ⟨L⟩ with ⟨-⟩ results in prin ...
) is the basis for such spacing modifiers in computer character sets such as the
ASCII ASCII ( ), an acronym for American Standard Code for Information Interchange, is a character encoding standard for representing a particular set of 95 (English language focused) printable character, printable and 33 control character, control c ...
caret (^, for the
circumflex The circumflex () is a diacritic in the Latin and Greek scripts that is also used in the written forms of many languages and in various romanization and transcription schemes. It received its English name from "bent around"a translation of ...
accent). Backspace composition no longer works with typical modern digital displays or typesetting systems.There is no reason why a digital display or typesetting system could not be designed to allow backspace composition, a.k.a. overstrike, if an engineer chose to do that. As most contemporary computer display and typesetting systems are raster graphics-based rather than character-based (as of 2012), they make overstrike actually quite easy to implement. However, the use of proportional-width rather than fixed-width (monospaced) fonts makes the practical implementation of overstrike more complicated, and the original physical motivation for the technique is not present in digital computer systems. It has to some degree been replaced with the
combining diacritical mark In digital typography, combining characters are Character (computing), characters that are intended to modify other characters. The most common combining characters in the Latin script are the combining diacritic, diacritical marks (including c ...
s mechanism of
Unicode Unicode or ''The Unicode Standard'' or TUS is a character encoding standard maintained by the Unicode Consortium designed to support the use of text in all of the world's writing systems that can be digitized. Version 16.0 defines 154,998 Char ...
, though such characters do not work well with many fonts, and precomposed characters continue to be used. Some software like
TeX Tex, TeX, TEX, may refer to: People and fictional characters * Tex (nickname), a list of people and fictional characters with the nickname * Tex Earnhardt (1930–2020), U.S. businessman * Joe Tex (1933–1982), stage name of American soul singer ...
or
Microsoft Windows Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
use the opposite method for diacritical marks, namely positioning the accent first, and then the base letter on its position.


Use in computing


Common use

In modern systems, the backspace key is often mapped to the delete character (0x7f in ASCII or Unicode), although the backspace key's function of deleting the character before the cursor remains. In computers, backspace can also delete a preceding
newline A newline (frequently called line ending, end of line (EOL), next line (NEL) or line break) is a control character or sequence of control characters in character encoding specifications such as ASCII, EBCDIC, Unicode, etc. This character, or ...
character, something generally inapplicable to typewriters. The backspace key is commonly used to go back a page or up one level in graphical web or file browsers.


^H

Pressing the backspace key on a
computer terminal A computer terminal is an electronic or electromechanical hardware device that can be used for entering data into, and transcribing data from, a computer or a computing system. Most early computers only had a front panel to input or display ...
would generate the
ASCII ASCII ( ), an acronym for American Standard Code for Information Interchange, is a character encoding standard for representing a particular set of 95 (English language focused) printable character, printable and 33 control character, control c ...
code 08, BS or Backspace, a
control code In computing and telecommunications, a control character or non-printing character (NPC) is a code point in a character set that does not represent a written character or symbol. They are used as in-band signaling to cause effects other than ...
which would delete the preceding character. That control code could also be accessed by pressing (+, as H is the eighth letter of the
Latin alphabet The Latin alphabet, also known as the Roman alphabet, is the collection of letters originally used by the Ancient Rome, ancient Romans to write the Latin language. Largely unaltered except several letters splitting—i.e. from , and from â ...
. Terminals which did not have the backspace code mapped to the function of moving the cursor backwards and deleting the preceding character would display the symbols ^H (
caret Caret () is the name used familiarly for the character provided on most QWERTY keyboards by typing . The symbol has a variety of uses in programming and mathematics. The name "caret" arose from its visual similarity to the original proofre ...
, H) when the backspace key was pressed. Even if a terminal did interpret backspace by deleting the preceding character, the system receiving the text might not. Then, the sender's screen would show a message without the supposedly deleted text, while that text, and the deletion codes, would be visible to the recipient. This sequence is still used humorously for
epanorthosis An epanorthosis is a figure of speech that signifies emphatic word replacement. "Thousands, no, millions!" is a stock example. Epanorthosis as immediate and emphatic self-correction often follows a Freudian slip (either accidental or deliberate). E ...
by computer literates, denoting the deletion of a pretended blunder, much like a
strikethrough Strikethrough, or strikeout, is a typographical presentation of words with a horizontal line through their center, resulting in , sometimes an X or a forward slash is typed over the top instead of using a horizontal line. Strike-through was u ...
; in this case, however, the ^H symbol is faked by typing a regular '^' followed by typing a regular 'H'. Example: :''Be nice to this fool''^H^H^H^H''gentleman; he's visiting from corporate HQ.''Chapter 5. Hacker Writing Style
The
Jargon File The Jargon File is a glossary and usage dictionary of slang used by computer programmers. The original Jargon File was a collection of terms from technical cultures such as the MIT Computer Science and Artificial Intelligence Laboratory, MIT AI Lab ...
, version 4.4.7


Alternatives

An alternative sometimes seen is ^W, which is the shortcut to delete the previous word in the Berkeley Unix terminal line discipline. This shortcut has also made it into the insert mode of the Vi text editor and its clone Vim. ^U deletes a line.


Notes


References

{{Keyboard keys Computer keys Control characters