Reset idle timer on character input
Requested by peterbjornx
This commit is contained in:
parent
c5c48dcd2c
commit
3ce1874d3a
1 changed files with 6 additions and 3 deletions
9
revbank
9
revbank
|
@ -64,10 +64,13 @@ sub prompt {
|
|||
$input = shift;
|
||||
$readline->callback_handler_remove;
|
||||
});
|
||||
|
||||
|
||||
my $begin = my $time = time;
|
||||
while (not $done) {
|
||||
$readline->callback_read_char if $select->can_read(.05);
|
||||
while (not $done) {
|
||||
if ($select->can_read(.05)) {
|
||||
$readline->callback_read_char;
|
||||
$begin = $time;
|
||||
}
|
||||
if (time > $time) {
|
||||
$time = time;
|
||||
call_hooks(
|
||||
|
|
Loading…
Add table
Reference in a new issue