提交 28bc9d1c 编写于 作者: D Derek Parker

Print 'exit' upon ctrl-d EOF

上级 d75ac751
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册