diff options
-rw-r--r-- | go.mod | 7 | ||||
-rw-r--r-- | sd.go | 3 |
2 files changed, 6 insertions, 4 deletions
@@ -2,7 +2,6 @@ module sd go 1.18 -require ( - golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 // indirect - golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect -) +require golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 + +require golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 // indirect @@ -12,9 +12,12 @@ var file = flag.String("f", "cards", "cards file") func main() { flag.Parse() + // Put terminal into raw mode oldState, err := term.MakeRaw(int(os.Stdin.Fd())) if err != nil { panic(err) } defer term.Restore(int(os.Stdin.Fd()), oldState) + + } |