example: improve InterruptPrompt

This commit is contained in:
Cheney 2015-11-20 11:33:10 +08:00
parent 5660cc8cb6
commit 4dffd60960
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ func main() {
Prompt: "\033[31m»\033[0m ", Prompt: "\033[31m»\033[0m ",
HistoryFile: "/tmp/readline.tmp", HistoryFile: "/tmp/readline.tmp",
AutoComplete: completer, AutoComplete: completer,
InterruptPrompt: "\nInterrupt", InterruptPrompt: "\nInterrupt, Press Ctrl+D to exit",
EOFPrompt: "exit", EOFPrompt: "exit",
}) })
if err != nil { if err != nil {