From 029058f49cf429c0aef2155571767de5d955695c Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 9 Dec 2023 12:07:06 -0500 Subject: [PATCH] fixed windows welcome header unable to be read --- error.go | 1 - main.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/error.go b/error.go index 5d1320b..1c30587 100644 --- a/error.go +++ b/error.go @@ -11,5 +11,4 @@ func Error(err error) { pterm.Error.Println(err) os.Exit(1) } - return } diff --git a/main.go b/main.go index 8e91f11..c47b796 100644 --- a/main.go +++ b/main.go @@ -14,7 +14,7 @@ import ( func main() { // Set Welcome Header - pterm.DefaultHeader.WithBackgroundStyle(pterm.NewStyle(pterm.BgCyan)).WithTextStyle(pterm.NewStyle(pterm.FgCyan)).Println("Welcome to Checkdigit Calculator") + pterm.DefaultHeader.WithBackgroundStyle(pterm.NewStyle(pterm.BgCyan)).WithTextStyle(pterm.NewStyle(pterm.FgBlack)).Println("Welcome to Checkdigit Calculator") // Check what directory the commandline is on when the program is launched. directory, err := os.Getwd()