From 33f17cb9fbe950de6555ff6366376c0f32314171 Mon Sep 17 00:00:00 2001 From: Luit van Drongelen Date: Wed, 18 Feb 2015 21:49:19 +0100 Subject: [PATCH] Have EOF insert a newline before returning Ctrl+D now leaves the shell prompt with `> ` before the prompt line --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index a825eca..c68af76 100644 --- a/main.go +++ b/main.go @@ -45,6 +45,7 @@ func main() { if err != nil { if err == io.EOF { // Quit without error on Ctrl^D + fmt.Println() break } panic(err)