diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/eval/main.go | 4 | ||||
-rw-r--r-- | cmd/j1e/main.go | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/cmd/eval/main.go b/cmd/eval/main.go index cd593a3..1e3635e 100644 --- a/cmd/eval/main.go +++ b/cmd/eval/main.go @@ -1,12 +1,14 @@ package main import ( + "os" + "dim13.org/j1" "dim13.org/j1/console" ) func main() { - con := console.New() + con := console.New(os.Stdout, os.Stdin) defer con.Stop() vm := j1.New(con) if err := vm.LoadFile("testdata/j1e.bin"); err != nil { diff --git a/cmd/j1e/main.go b/cmd/j1e/main.go index 934d416..586427e 100644 --- a/cmd/j1e/main.go +++ b/cmd/j1e/main.go @@ -3,12 +3,14 @@ package main //go:generate file2go -in ../../testdata/j1e.bin import ( + "os" + "dim13.org/j1" "dim13.org/j1/console" ) func main() { - con := console.New() + con := console.New(os.Stdout, os.Stdin) defer con.Stop() vm := j1.New(con) vm.LoadBytes(J1eBin) |