aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum/repl_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethereum/repl_windows.go')
-rw-r--r--ethereum/repl_windows.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/ethereum/repl_windows.go b/ethereum/repl_windows.go
new file mode 100644
index 000000000..c65bb1cb4
--- /dev/null
+++ b/ethereum/repl_windows.go
@@ -0,0 +1,20 @@
+package main
+
+import (
+ "bufio"
+ "fmt"
+ "os"
+)
+
+func (self *JSRepl) read() {
+ reader := bufio.NewReader(os.Stdin)
+ for {
+ fmt.Printf("eth >>> ")
+ str, _, err := reader.ReadLine()
+ if err != nil {
+ fmt.Println("Error reading input", err)
+ } else {
+ self.parseInput(string(str))
+ }
+ }
+}