Re-enable echo when restoring

This commit is contained in:
Andrew Stewart 2015-07-09 13:52:08 -07:00
parent 15a764d865
commit 1e35d4a70c
1 changed files with 4 additions and 0 deletions

View File

@ -136,6 +136,10 @@ func configure() (err error) {
// restores the TTY to the original state
func restore() (errs []error) {
if _, err := stty("echo"); err != nil {
return []error{err}
}
if _, err := stty(originalState); err != nil {
return []error{err}
}