Commit Graph

3 Commits

Author SHA1 Message Date
Wolfgang Bumiller
ee29490fe0 read_password improvements
* Cancel on Ctrl+C (die())
* Finish on Ctrl+D (eof/eot) without appending a newline
* Also finish on \n to be sure.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-12-13 14:49:14 +01:00
Wolfgang Bumiller
1406425133 pty: add read_password helper
Short helper which doesn't need readline and/or deal with
history cleanup.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2017-11-27 14:21:50 +01:00
Wolfgang Bumiller
a0f008cd10 Add PVE::PTY helper class
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2017-11-27 14:21:50 +01:00