A hook for beeping.

This commit is contained in:
Juerd Waalboer 2014-01-11 21:37:44 +01:00
parent 8f84891b0c
commit 2ea1d736b0
3 changed files with 20 additions and 3 deletions

View file

@ -7,7 +7,7 @@ sub command { NEXT }
sub hook_prompt_idle {
my ($class, $cart, $plugin, $seconds, $readline) = @_;
if ($seconds >= $timeout and $cart->size and not $plugin) {
$readline->ding;
call_hooks("beep");
return if $seconds > $timeout; # text only once