cmd/geth: change ctrl-c behaviour

ctrl-c clears the line, ctrl-d will quit the program
This commit is contained in:
Jeffrey Wilcke 2015-08-11 18:52:10 +02:00
parent c32d6fdf74
commit cdbb458fc9

View file

@ -208,7 +208,6 @@ func newJSRE(ethereum *eth.Ethereum, libPath, corsDomain string, client comms.Et
} else { } else {
lr := liner.NewLiner() lr := liner.NewLiner()
js.withHistory(func(hist *os.File) { lr.ReadHistory(hist) }) js.withHistory(func(hist *os.File) { lr.ReadHistory(hist) })
lr.SetCtrlCAborts(true)
js.loadAutoCompletion() js.loadAutoCompletion()
lr.SetWordCompleter(apiWordCompleter) lr.SetWordCompleter(apiWordCompleter)
lr.SetTabCompletionStyle(liner.TabPrints) lr.SetTabCompletionStyle(liner.TabPrints)