• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Andreas Macke
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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 ]
 
Carlos Failde
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy.
It works if you put a pause in after each beep with something like:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!