mirror of
https://github.com/go-delve/delve.git
synced 2025-11-02 21:40:22 +08:00
Print 'exit' upon ctrl-d EOF
This commit is contained in:
@ -76,6 +76,7 @@ func (t *Term) Run() (error, int) {
|
|||||||
cmdstr, err := t.promptForInput()
|
cmdstr, err := t.promptForInput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
|
fmt.Println("exit")
|
||||||
return handleExit(t.client, t)
|
return handleExit(t.client, t)
|
||||||
}
|
}
|
||||||
err, status = fmt.Errorf("Prompt for input failed.\n"), 1
|
err, status = fmt.Errorf("Prompt for input failed.\n"), 1
|
||||||
|
|||||||
Reference in New Issue
Block a user