Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
"Hargus, Duane" wrote:
>
> > Anyone know how to beep the PC speaker (x86 platform) when there is no
> > video card (and therefore no console) ?
> >
See if this program works:
/* bell.c
compile with command
cc bell.c -lncurses -o bell
*/
#include <stdlib.h>
#include <curses.h>
#include <term.h>
main() {
char s[1024], *ptr = s;
setterm(getenv("TERM"));
putp(tgetstr("bl",&ptr));
}
--
Stephen Montgomery-Smith
EMAIL:PROTECTED
http://www.math.missouri.edu/~stephen
--
To unsubscribe, go to http://mlug.missouri.edu/members/edit.php
Archives are available at http://mlug.missouri.edu/list-archives/