aboutsummaryrefslogblamecommitdiffstats
path: root/ethereum/repl_windows.go
blob: c65bb1cb43f46edd0d5fb360e870d32c9137fcc6 (plain) (tree)



















                                                               
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))
        }
    }
}