Skip to content
Snippets Groups Projects
Commit a5a46cfd authored by guillaum.chanel's avatar guillaum.chanel Committed by Florent Gluck
Browse files

Handle ctrl+D

parent e95d23cf
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