^D interrupt does the same as ^C

This commit is contained in:
zs 2019-01-30 13:35:10 +01:00
commit 84b300d396
2 changed files with 11 additions and 9 deletions

View file

@ -74,7 +74,7 @@ func (s *Session) setupReadline() (err error) {
cfg := readline.Config{
HistoryFile: history,
InterruptPrompt: "^C",
EOFPrompt: "exit",
EOFPrompt: "^D",
AutoComplete: readline.NewPrefixCompleter(prefixCompleters...),
}