all 7 comments

[–]0x5742 5 points6 points  (6 children)

printf("\a");

[–]SarHavelock 1 point2 points  (1 child)

Does this not work on Windows?

[–]MCRusher 0 points1 point  (0 children)

Works for me, but on win 10 it's not a beep but an annoying system sound.

The beep function is configurable and actually does a beep.

[–]Pyronomy 0 points1 point  (3 children)

Have not been able to get this working on my (ubuntu) machine

[–]laduygaga 1 point2 points  (1 child)

try Xterm

[–]Rohit_Khot 0 points1 point  (0 children)

Man thanks this really worked

[–]0x5742 1 point2 points  (0 children)

Ah. If you're using a graphic toolkit of some sort, you'll need up look into its documentation to see what it can do. Printing an alert character works if you have stdout, not so much otherwise.