Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the purpose of Unicode "Backspace" U+0008?

What is the purpose of the Unicode Character 'BACKSPACE' (U+0008) in programming? What applications can it be used for?

like image 764
skibulk Avatar asked Dec 16 '11 21:12

skibulk


People also ask

What is Unicode u0008?

Backspace (U+0008) The character (Backspace) is represented by the Unicode codepoint U+0008. It is encoded in the Basic Latin block, which belongs to the Basic Multilingual Plane.

What is Unicode and how does it work?

The Unicode Standard provides a unique number for every character, no matter what platform, device, application or language. It has been adopted by all modern software providers and now allows data to be transported through many different platforms, devices and applications without corruption.

What is a Unicode on keyboard?

Unicode input is the insertion of a specific Unicode character on a computer by a user; it is a common way to input characters not directly supported by a physical keyboard. Unicode characters can be produced either by selecting them from a display or by typing a certain sequence of keys on a physical keyboard.


1 Answers

On output to a terminal, it typically moves the cursor one position to the left (depending on settings). On input, it typically erases the last entered character (depending on the application and terminal settings), though the DEL / DELETE character is also used for this purpose. Typically it can be entered by pressing Backspace or Control-H

Note that its action of deleting characters occurs only on a display, not in memory. A string within a running program can contain just about any sequence of characters (depending perhaps on the language), including backspace. In that context, it's generally just another character. For example, in C strlen("abcd\b") is 5, not 3.

In C and a number of other languages, it's represented in program source as '\b'. It's sometimes displayed as ^H.

All this applies whether it's represented as Unicode or not. The backspace character is common to most or all character sets: ASCII, Latin-1, the various Unicode representations -- even EBCDIC has a backspace character (but with a different code).

like image 58
Keith Thompson Avatar answered Oct 23 '22 06:10

Keith Thompson