• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

multiple beeps using System.out.println("\007") - how?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I've been trying to get multiple beeps to be sounded to signifiy different levels of system feedback. I'm currently looking at something like this (I can't count on a soundcard, so I have to use the ascii bell instead of toolkit.bell()):
for (int i=0; i < numofBeeps; i++){
System.out.println("\007");
System.out.flush();
}//end for
I've run this through the Eclipse debugger, and even when numOfBeeps > 1, and I can see the loop executing several times, I only get one beep out of the system. Does anyone have an idea what's going on here?
TIA,
Andreas
[ March 23, 2004: Message edited by: Andreas Macke ]
 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Howdy.
It works if you put a pause in after each beep with something like:
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic