Meet people who work on similar things as you – get help if you need it
Join Siafoo Now
or
Learn More
Ring the Bell
Updated over 2 years ago (01 Jul 2008 at 02:13 AM)
recent activity
| In Brief | How to ring the bell from the terminal.... more |
| Language | (Ba)sh |
# 's
1echo $'\a'
How to ring the bell from the terminal.
Printing "\a" from bash, Python, and most other languages will ring the bell. It's almost trivial, but a good (if annoying) way to communicate with the user.
For example, when developing Siafoo we run unittests occasionally, these could take a while or crash right away, and I don't want to sit and stare at them:
# 's
1nosetests -x [some other options]; echo $'\a'
Now I can tell audibly when the tests are done.... granted I can also tell when my laptop stops sounding like a jet engine, but that's a bit more delayed...
Add a Comment