From 1e35d4a70c5bca792ec584edad13619d5094edc3 Mon Sep 17 00:00:00 2001 From: Andrew Stewart Date: Thu, 9 Jul 2015 13:52:08 -0700 Subject: [PATCH] Re-enable echo when restoring --- platforms/keyboard/keyboard.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platforms/keyboard/keyboard.go b/platforms/keyboard/keyboard.go index ba676e45..4cc6d24f 100644 --- a/platforms/keyboard/keyboard.go +++ b/platforms/keyboard/keyboard.go @@ -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} }