diff options
author | Julien Dessaux | 2021-09-24 01:26:49 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-09-24 01:26:49 +0200 |
commit | da7e7dae2b690308fb7ff3aba34145233c740bce (patch) | |
tree | c836da7165fa8ef26f7d7342c08635f0a35b0065 /pkg/pointer/intput-output.go | |
parent | Implemented commands until helloworld works \o/ (diff) | |
download | gofunge98-da7e7dae2b690308fb7ff3aba34145233c740bce.tar.gz gofunge98-da7e7dae2b690308fb7ff3aba34145233c740bce.tar.bz2 gofunge98-da7e7dae2b690308fb7ff3aba34145233c740bce.zip |
Made the interpreter pass most of the mycology test suite
Diffstat (limited to 'pkg/pointer/intput-output.go')
-rw-r--r-- | pkg/pointer/intput-output.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/pkg/pointer/intput-output.go b/pkg/pointer/intput-output.go index cc7533e..ac58d44 100644 --- a/pkg/pointer/intput-output.go +++ b/pkg/pointer/intput-output.go @@ -4,8 +4,6 @@ import ( "fmt" "log" "os" - - "github.com/pkg/term" ) var defaultInputLastChar *int = nil @@ -16,13 +14,6 @@ func DefaultCharacterInput() int { defaultInputLastChar = nil return c } - t, err := term.Open("/dev/stdin") - if err != nil { - log.Fatalf("Could not open stdin: %+v", err) - } - defer t.Close() - defer t.Restore() - term.RawMode(t) b := make([]byte, 1) i, err := os.Stdin.Read(b) if err != nil { |