A hook for beeping.
This commit is contained in:
parent
8f84891b0c
commit
2ea1d736b0
3 changed files with 20 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue