Ensure that the terminal is reset correctly after prompting for a password.
Thanks to Jonathan for reporting this! Fixes #84
This commit is contained in:
parent
0c44bdc599
commit
f4d9395adc
|
@ -168,6 +168,7 @@ if (! $plugin->opts->password) {
|
|||
chomp($conf{'password'});
|
||||
|
||||
$term->setlflag($lflag | POSIX::ECHO);
|
||||
$term->setattr(fileno(STDIN), TCSAFLUSH);
|
||||
print "\n";
|
||||
}
|
||||
|
||||
|
|
|
@ -170,6 +170,7 @@ if (! $plugin->opts->password) {
|
|||
chomp($conf{'password'});
|
||||
|
||||
$term->setlflag($lflag | POSIX::ECHO);
|
||||
$term->setattr(fileno(STDIN), TCSAFLUSH);
|
||||
print "\n";
|
||||
}
|
||||
|
||||
|
|
|
@ -346,6 +346,7 @@ sub connect
|
|||
chomp($self->{'conf'}->{'password'});
|
||||
|
||||
$term->setlflag($lflag | POSIX::ECHO);
|
||||
$term->setattr(fileno(STDIN), TCSAFLUSH);
|
||||
print "\n";
|
||||
}
|
||||
|
||||
|
|
|
@ -353,6 +353,7 @@ sub connect
|
|||
chomp($self->{'conf'}->{'password'});
|
||||
|
||||
$term->setlflag($lflag | POSIX::ECHO);
|
||||
$term->setattr(fileno(STDIN), TCSAFLUSH);
|
||||
print "\n";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue