Skip to content
Snippets Groups Projects
Commit 033fa3ab authored by Florent Gluck's avatar Florent Gluck
Browse files

Merge branch 'ctrld' into 'master'

Handle ctrl+D

See merge request !3
parents e95d23cf a5a46cfd
Branches
Tags
1 merge request!3Handle ctrl+D
......@@ -2,6 +2,7 @@ package main
import (
"os"
"io"
"fmt"
"path"
"errors"
......@@ -200,6 +201,9 @@ Type: "help" for help on commands
} else if err == liner.ErrPromptAborted {
u.Println("Aborted")
continue
} else if err == io.EOF {
quit = true
continue
} else {
u.Println("Error reading line: ", err)
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment