Re: Getting access to PC-Speaker

From: Michael Heiming (michael+USENET_at_www.heiming.de)
Date: 07/13/03


Date: Sun, 13 Jul 2003 04:44:30 +0200

In alt.os.linux.suse Dave <dwat@gc.quik.com.au> wrote:
> G'day All

> I am trying to get some beeps from the PC-Speaker - just
> simple tones.

> I'm writing in C and have tried the suggested methods
> such as printf("%c\n", '\007');
> printf("%c\n", 0x07);
> printf("\a");
> putchar ('\a');
> putc('\a', stderr);

What does the following, from some xterm?

$ echo -e "\a" > /dev/console

-- 
Michael Heiming
Remove +SIGNS and www. if you expect an answer, sorry for 
inconvenience, but I get tons of SPAM


Relevant Pages

  • Re: read and write columns
    ... For putchar, ... at least for stdout and stderr. ... Any write to stdout must certainly be verified and any ... necessity to constantly test the execution of almost every standard ...
    (comp.lang.c)
  • Re: fast user switching
    ... On Wed, 07 Jan 2004 at 13:22 GMT, Michael Heiming wrote: ... >> Anything like XP's fast user switching for Linux? ... sudo -u xterm ...
    (alt.os.linux)
  • Re: How do they get screenshots of the login screen ?
    ... Michael Heiming wrote: ... >> wondering how one can get a screenshot of that, since they are not logged in ... > The most obvious would be to open some xterm: ... > Of course Xnest needs to be installed. ...
    (alt.os.linux)
  • Re: read and write columns
    ... Richard Tobin wrote: ... putcharto getc(). ... For putchar, testing for EOF may be over-engineering, ... at least for stdout and stderr. ...
    (comp.lang.c)
  • Re: Getting access to PC-Speaker
    ... Dave wrote: ... from some xterm? ... > to become root to run it. ... Michael Heiming ...
    (alt.os.linux.suse)