From 4ec896276fa9b926873a8c96ed7227afec3dadb7 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 9 Dec 2023 16:36:45 -0500 Subject: [PATCH] fixed coloring --- main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 60f9b75..5b9f50f 100644 --- a/main.go +++ b/main.go @@ -14,7 +14,9 @@ import ( func main() { // Set Welcome Header - pterm.DefaultHeader.WithBackgroundStyle(pterm.NewStyle(pterm.BgCyan)).WithTextStyle(pterm.NewStyle(pterm.FgBlack)).Println("Welcome to Checkdigit Calculator") + // pterm.DefaultHeader.WithBackgroundStyle(pterm.NewStyle(pterm.BgCyan)).WithTextStyle(pterm.NewStyle(pterm.FgBlack)).Println("Welcome to Checkdigit Calculator") + + pterm.DefaultSection.Printfln(pterm.Cyan("Welcome to Check Digit Calculator")) // Check what directory the commandline is on when the program is launched. directory, err := os.Getwd() @@ -28,7 +30,7 @@ func main() { if len(args) > 0 { input = args[0] } else { - pterm.Printf(pterm.Cyan("What is the name of the file in this directory?: ")) + pterm.Printf(pterm.LightGreen("What is the name of the file in this directory?: ")) reader := bufio.NewReader(os.Stdin) input, err = reader.ReadString('\n') Error(err)