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
Popis
int ncurses_beep ( void )Varování
Tato funkce je EXPERIMENTÁLNÍ. Chování této funkce, její název a všechno ostatní, co je zde zdokumentováno, se v budoucích verzích PHP může BEZ OHLÁŠENÍ změnit. Berte to v úvahu a používejte tuto funkci na vlastní nebezpečí.
ncurses_beep() sends an audible alert (bell) and if its not possible flashes the screen.
Viz také
| ncurses_flash() |
ncurses_beep
arplynn at gmail dot com
21-Jan-2006 12:17
21-Jan-2006 12:17
