From 73c28262738615dbe01e52cfb3b094af4b94a214 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sun, 29 Sep 2024 12:59:21 -0700 Subject: [PATCH] Don't add an extra line when offering a "quit" prompt. --- cardsim/terminalui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cardsim/terminalui.go b/cardsim/terminalui.go index 6d8a378..b86b55c 100644 --- a/cardsim/terminalui.go +++ b/cardsim/terminalui.go @@ -200,7 +200,7 @@ func lightDivider() { func confirmQuit() { divider() - fmt.Println("Are you sure you want to quit? (Y/N) > ") + fmt.Printf("Are you sure you want to quit? (Y/N) > ") s := getResponse() if s == "y" || s == "yes" { fmt.Println("Bye!")