Print 'exit' upon ctrl-d EOF

This commit is contained in:
Derek Parker
2015-07-11 09:28:29 -05:00
parent d75ac75195
commit 28bc9d1ce7

View File

@ -76,6 +76,7 @@ func (t *Term) Run() (error, int) {
cmdstr, err := t.promptForInput()
if err != nil {
if err == io.EOF {
fmt.Println("exit")
return handleExit(t.client, t)
}
err, status = fmt.Errorf("Prompt for input failed.\n"), 1