BEL (Bell) is ASCII code point 7 (0x07), Unicode U+0007. It is a C0 control character that triggered a literal metal bell on teleprinters to alert the operator. Today, printing '\a' or 0x07 to a terminal emulator produces a system beep or visual flash — Ctrl+G still works in xterm, GNOME Terminal, and iTerm2. It also doubles as a string terminator in OSC (Operating System Command) escape sequences, where 0x07 substitutes for ST (0x9C) to set window titles or clipboard contents. UTF-8 encodes it as the single byte 0x07; Unicode classifies it as Cc (Control) with the alias BELL.
fputs("Build finished\a\n", stdout);// BEL (0x07) asks the terminal to beep/flashfflush(stdout);
BEL (ASCII 7) originally rang a physical bell on teletypes to get the operator's attention. Today it triggers a system notification sound or visual flash in your terminal — the digital equivalent of tapping someone on the shoulder.
Print the escape sequence \a or the byte 0x07 to standard output. In Python: print('\a'). In a shell: echo -e '\a'. Whether you hear a sound depends on your terminal settings — many modern terminals mute it by default.
Most terminal emulators offer a 'visual bell' option that replaces the audible beep with a brief screen flash. It's popular in shared offices and for accessibility. Check your terminal's preferences if you want to switch between the two.
Rarely in modern systems. Some legacy protocols used it as a separator or attention signal, and a few creative uses exist — like embedding it in CI output to alert developers when a build fails, even if they're not watching the screen.