If you want to make the terminal beep on a PHP CLI application without needing the ncurses library, use the following code:
<?php
function cli_beep()
{
echo "\x07";
}
?>
ncurses_beep
(PHP 4 >= 4.0.7, PHP 5, PECL ncurses:1.0.0)
ncurses_beep — Let the terminal beep
Descrição
int ncurses_beep
( void
)
Aviso
Esta função é EXPERIMENTAL. O comportamento desta função, seu nome, incluindo toda documentação pode ser modificado sem aviso em futuras versões do PHP. Esta função deve ser usada por sua própria conta e risco.
ncurses_beep() sends an audible alert (bell) and if its not possible flashes the screen.
ncurses_beep
arplynn at gmail dot com
21-Jan-2006 12:17
21-Jan-2006 12:17
