repat/commandline-bell

Makes the ASCII Bell sound or flashes terminal

Installs: 1 482

Dependents: 0

Suggesters: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:application

0.1 2017-12-29 00:40 UTC

README

Latest Version on Packagist Total Downloads

CommandlineBell

php-commandline-bell makes the ASCII Bell sound or flashes the terminal.

use repat\CommandlineBell;

// flashes screen if possible, otherwise just bell()
CommandlineBell::flash();

// makes a beep sound
CommandlineBell::bell();

Under the hood

// ASCI BEL, see https://en.wikipedia.org/wiki/Bell_character
echo "0x07";

Alternatives