[EMAIL PROTECTED] escreveu:
Alguem saberia me informar como eu posso utilizar o auto falante do pc no linux? Por exemplo, estou fazendo um programa e gostaria que quando eu inserisse um valor incorreto fosse emitido um sinal sonoro como um bip curto, em um caso de erro, um bip longo no tipo de erro 2 e assim por diante.
O ncurses tem uma fun��o beep():
$ man 3 beep
NAME
beep, flash - curses bell and screen flash routinesSYNOPSIS
#include <curses.h> int beep(void);
int flash(void);DESCRIPTION
The beep and flash routines are used to alert the terminal user. The
routine beep sounds an audible alarm on the terminal, if possible; oth-
erwise it flashes the screen (visible bell). The routine flash flashes
the screen, and if that is not possible, sounds the alert. If neither
alert is possible, nothing happens. Nearly all terminals have an audi-
ble alert (bell or beep), but only some can flash the screen.
--------------------------------------------------------------------------- Esta lista � patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br
Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br Regras de utiliza��o da lista: http://linux-br.conectiva.com.br FAQ: http://www.zago.eti.br/menu.html
