Add a dependency on github.com/howeycgopass

This commit is contained in:
Brendan Burns
2016-08-27 21:18:58 -07:00
parent 72fbb5193b
commit ba7f61c340
13 changed files with 1847 additions and 0 deletions

25
vendor/github.com/howeyc/gopass/terminal.go generated vendored Normal file
View File

@@ -0,0 +1,25 @@
// +build !solaris
package gopass
import "golang.org/x/crypto/ssh/terminal"
type terminalState struct {
state *terminal.State
}
func isTerminal(fd uintptr) bool {
return terminal.IsTerminal(int(fd))
}
func makeRaw(fd uintptr) (*terminalState, error) {
state, err := terminal.MakeRaw(int(fd))
return &terminalState{
state: state,
}, err
}
func restore(fd uintptr, oldState *terminalState) error {
return terminal.Restore(int(fd), oldState.state)
}