6 ms·
I've appended `; tput bel` to the end of long-running scripts to get the same effect. Fun fact: the `bell` control character is part of the ascii standard (and
by orpheansodality 3y ago
I've appended `; tput bel` to the end of long-running scripts to get the same effect.
Fun fact: the `bell` control character is part of the ascii standard (and before that the baudot telegraph encoding!) and was originally there to ring a literal bell on a recipient's telegraph or teletype machine, presumably to get their attention that they had an incoming message.
To keep backwards compatibility today's terminal emulators trigger the system alert sound instead.
- austin-cheney 3y agoIn Java and JavaScript it’s just: \u0007 It’s handy to put in your shell code that takes a few seconds, or more, to complete.
- pge 3y agoThe Apple II+ still had a ‘bell’ key on the keyboard (I can’t think of a more recent computer that had that)
- mnw21cam 3y agoI always used to just have 'echo "^G"' instead (where ^G is typed as CTRL-V CTRL-G).