Hi Carlos, I knew the system beep character was ASCII 7, but I wanted to verify my solution before posting. Then I found this article describing exactly what you want to do. Viva la Google! ;)
Nathan ---- http://www.java-tips.org/java-se-tips/java.lang/how-to-emit-a-beep-by-printing-the-ascii-bell-character-to-the-co-9.html Bell character is the control code used to sound an audible bell or tone in order to alert the user (ASCII 7, EBCDIC 2F). Bell character is an ASCII control character, code 7 (^G). When it is sent to a printer or a terminal, nothing is printed, but an audible signal is emitted instead. You can emit a beep by printing the ASCII Bell character ("\0007") to the console. public class testBeep { public static main(String args[]) { // ASCII bell System.out.print("\0007"); System.out.flush(); } } ----- "Carlos Ortiz" <[EMAIL PROTECTED]> wrote: > Well guys, I know here we post to ask programming questions or any > other related stuff around Appfuse technologies. > But I need to solve the following question as I have not been able to > do it. > > Here it is the problem > > I am using a Symbol PDT 3140 machine. > It uses DR-DOS > Well, I connect to a server application via Telnet thus reading a bar > code in this machine, it is sent to the server application thanks to > telnet, up to this point everything is just fine, but the problem is > to instruct PDT 3140 to beep when server application after gathering > the bar code realizes that it is not found in database records, thus > issuing an error to the client telling it is not present and beeping > as well. > > Question in a hurry is (and a challenge as well). Does SOMEBODY know > how to do it? Using Java, C, C++ or you name it, that is, I need some > clue for doing this, should my project fail starting up by this > requirement. > > In advance, thanks for any help and light for this problem. > Thanks again for reading and allowing me to post this non-programming > stuff, or is it? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
