From 2e0dac3994581e944e839e3dc8245243d08e8804 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sun, 27 Mar 2022 18:02:49 -0500 Subject: Run go mod tidy --- go.mod | 7 +++---- sd.go | 3 +++ 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) + + } -- cgit v1.2.3-70-g09d2