aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2022-03-27 18:02:49 -0500
committerAnthony Wang2022-03-27 18:02:49 -0500
commit2e0dac3994581e944e839e3dc8245243d08e8804 (patch)
treef39334ca3f9f86d95423ea0c55e265179e173bf8
parenta5977b9500bbd5486e9fae080ac49d9325b0d1ae (diff)
Run go mod tidy
-rw-r--r--go.mod7
-rw-r--r--sd.go3
2 files changed, 6 insertions, 4 deletions
diff --git a/go.mod b/go.mod
index fda4565..6bfaa81 100644
--- a/go.mod
+++ b/go.mod
@@ -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
diff --git a/sd.go b/sd.go
index 5480499..26438f8 100644
--- a/sd.go
+++ b/sd.go
@@ -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)
+
+
}