mirror of https://github.com/ethereum/go-ethereum
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
294 B
21 lines
294 B
11 years ago
|
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))
|
||
|
}
|
||
|
}
|
||
|
}
|