aboutsummaryrefslogtreecommitdiff
path: root/pkg/pointer/intput-output.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-09-24 01:26:49 +0200
committerJulien Dessaux2021-09-24 01:26:49 +0200
commitda7e7dae2b690308fb7ff3aba34145233c740bce (patch)
treec836da7165fa8ef26f7d7342c08635f0a35b0065 /pkg/pointer/intput-output.go
parentImplemented commands until helloworld works \o/ (diff)
downloadgofunge98-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.go9
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 {