fixed coloring

This commit is contained in:
John O'Keefe 2023-12-09 16:36:45 -05:00
parent 264cff93a2
commit 4ec896276f

View File

@ -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)