Fix a bug which caused the client to never exit in interactive mode when NORAW is set.

This commit is contained in:
Solomon Hykes 2013-01-29 15:37:54 -08:00
parent 35f5cc239b
commit d5be77075a
1 changed files with 3 additions and 2 deletions

View File

@ -185,9 +185,10 @@ func main() {
if err := <-receive_stdout; err != nil {
Fatal(err)
}
if IsTerminal(0) && os.Getenv("NORAW") == "" {
if oldState != nil {
Restore(0, oldState)
} else {
}
if !IsTerminal(0) {
if err := <-send_stdin; err != nil {
Fatal(err)
}