aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
+
+
}