~juju-qa/ubuntu/xenial/juju/2.0-rc2

« back to all changes in this revision

Viewing changes to src/golang.org/x/crypto/ssh/terminal/util_windows.go

  • Committer: Nicholas Skaggs
  • Date: 2016-09-30 14:39:30 UTC
  • mfrom: (1.8.1)
  • Revision ID: nicholas.skaggs@canonical.com-20160930143930-vwwhrefh6ftckccy
import upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
        if e != 0 {
88
88
                return nil, error(e)
89
89
        }
90
 
        st &^= (enableEchoInput | enableProcessedInput | enableLineInput | enableProcessedOutput)
91
 
        _, _, e = syscall.Syscall(procSetConsoleMode.Addr(), 2, uintptr(fd), uintptr(st), 0)
 
90
        raw := st &^ (enableEchoInput | enableProcessedInput | enableLineInput | enableProcessedOutput)
 
91
        _, _, e = syscall.Syscall(procSetConsoleMode.Addr(), 2, uintptr(fd), uintptr(raw), 0)
92
92
        if e != 0 {
93
93
                return nil, error(e)
94
94
        }