for (keys %busy) {
my $node = $_;
my $ref = $busy{$_};
- if ($main::systime > $ref->{lastt} + $timeout) {
+ if (exists $ref->{lastt} && $main::systime > $ref->{lastt} + $timeout) {
$ref->stop_msg($node);
# delay any outgoing messages that fail
shift @history if @history > $maxhist;
$histpos = @history;
$bot->move(0,0);
+ $bot->clrtoeol();
$bot->addstr(substr($inbuf, 0, COLS));
}
} else {
beep();
}
- } elsif ($r eq KEY_HOME) {
+ } elsif ($r eq KEY_HOME || $r eq "\001") {
$pos = 0;
} elsif ($r eq KEY_BACKSPACE || $r eq "\010") {
if ($pos > 0) {