diff options
author | Anthony Wang | 2022-03-27 18:02:49 -0500 |
---|---|---|
committer | Anthony Wang | 2022-03-27 18:02:49 -0500 |
commit | 2e0dac3994581e944e839e3dc8245243d08e8804 (patch) | |
tree | f39334ca3f9f86d95423ea0c55e265179e173bf8 | |
parent | a5977b9500bbd5486e9fae080ac49d9325b0d1ae (diff) |
Run go mod tidy
-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) + + } |