|Integer ASCII code:||7|
|Binary code:||0000 0111|
|C/C++ notation:||\a or '\a'|
Unicode symbol: ␇, int code: 9223 (html ␇) hex code: 2407 (html ␇)
Initially was used to make a sound of bell on the terminal. Time passed and later it was used in the role of a beep on systems that didn't actually possess a physical bell. The inverse video may also be rapidly turned on and off by it (a visual bell).
A bell code (bell character in some cases) is a device control code initially created to ring a small electromechanical bell on tickers as well as on the other teleprinters and teletypewriters. This was done in order to notify operators at the other end of the line, frequently of a newly received message. Via tickers the bell codes were punched into their tapes. When the bell code is received, printers do not print a character. Bell codes are usually represented by the label "BEL". Since 1870 they were in wide use (the Baudot code was the first one).
Video display terminals (VDTs) have replaced teletypewriters. In order to support backward compatibility, they included speakers or buzzers to realize the same function. The same did the personal computers that were the later followers. Nowadays terminal emulators usually place the warnings to the desktop environment (e.g., the Mac OS X Terminal will make a sound of the system warning). Besides, they frequently offer a function of a visual bell with no sound. It's a short flash on the terminal window.
The character that has a 7 value in ASCII and Unicode is BEL. In caret notation it can be can be related to the control-G or ^G. Unicode has a special character for the visual representation of the bell code, "symbol for bell" (␇) at U+2407.
BEL is also represented in the 5-bit Baudot codes. When in "figures" mode, it has number 11 (0x0B).
Talking about the C programming language (created in 1972), here the bell character can be organized in a string or character constant with \a. ('a' means "alert" or "audible". It was chosen this way \b was already taken for the backspace character.)
|input value||base||type||output hash|