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
5
revbank
5
revbank
|
@ -67,7 +67,10 @@ sub prompt {
|
||||||
|
|
||||||
my $begin = my $time = time;
|
my $begin = my $time = time;
|
||||||
while (not $done) {
|
while (not $done) {
|
||||||
$readline->callback_read_char if $select->can_read(.05);
|
if ($select->can_read(.05)) {
|
||||||
|
$readline->callback_read_char;
|
||||||
|
$begin = $time;
|
||||||
|
}
|
||||||
if (time > $time) {
|
if (time > $time) {
|
||||||
$time = time;
|
$time = time;
|
||||||
call_hooks(
|
call_hooks(
|
||||||
|
|
Loading…
Add table
Reference in a new issue