Added multi-line support

This commit is contained in:
obscuren
2014-05-19 13:04:31 +02:00
parent 3b7707c3fd
commit 16421106d4
3 changed files with 35 additions and 9 deletions

View File

@ -9,7 +9,7 @@ import (
func (self *JSRepl) read() {
reader := bufio.NewReader(os.Stdin)
for {
fmt.Printf("eth >>> ")
fmt.Printf(self.prompt)
str, _, err := reader.ReadLine()
if err != nil {
fmt.Println("Error reading input", err)