aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum/javascript_console.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethereum/javascript_console.go')
-rw-r--r--ethereum/javascript_console.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/ethereum/javascript_console.go b/ethereum/javascript_console.go
index 884b9a629..1e1ae0e48 100644
--- a/ethereum/javascript_console.go
+++ b/ethereum/javascript_console.go
@@ -101,14 +101,15 @@ func (self *JSRE) Run(code string) (otto.Value, error) {
type JSRepl struct {
re *JSRE
+
+ prompt string
}
func NewJSRepl(ethereum *eth.Ethereum) *JSRepl {
- return &JSRepl{re: NewJSRE(ethereum)}
+ return &JSRepl{re: NewJSRE(ethereum), prompt: "> "}
}
func (self *JSRepl) Start() {
- fmt.Println("Eth JavaScript console")
self.read()
}