Fixes black on black terminal message. Closes #13

This commit is contained in:
Jguer 2017-02-25 22:53:06 +00:00
parent 1ebe472123
commit 771410bc03
2 changed files with 3 additions and 3 deletions

View file

@ -225,10 +225,10 @@ func LocalStatistics(version string) error {
for _, res := range q { for _, res := range q {
if res.Maintainer == "" { if res.Maintainer == "" {
fmt.Printf("\x1b[1;31;40mWarning: \x1B[1;33;40m%s\x1b[0;;40m is orphaned.\x1b[0m\n", res.Name) fmt.Printf("\x1b[1;31;40mWarning: \x1B[1;33;40m%s\x1b[0;37;40m is orphaned.\x1b[0m\n", res.Name)
} }
if res.OutOfDate != 0 { if res.OutOfDate != 0 {
fmt.Printf("\x1b[1;31;40mWarning: \x1B[1;33;40m%s\x1b[0;;40m is out-of-date in AUR.\x1b[0m\n", res.Name) fmt.Printf("\x1b[1;31;40mWarning: \x1B[1;33;40m%s\x1b[0;37;40m is out-of-date in AUR.\x1b[0m\n", res.Name)
} }
} }

View file

@ -127,7 +127,7 @@ func Editor() string {
} else if os.Getenv("VISUAL") != "" { } else if os.Getenv("VISUAL") != "" {
return os.Getenv("VISUAL") return os.Getenv("VISUAL")
} else { } else {
fmt.Printf("\x1b[1;31;40mWarning: \x1B[1;33;40m$EDITOR\x1b[0;;40m is not set.\x1b[0m\nPlease add $EDITOR or to your environment variables.\n") fmt.Printf("\x1b[1;31;40mWarning: \x1B[1;33;40m$EDITOR\x1b[0;37;40m is not set.\x1b[0m\nPlease add $EDITOR or to your environment variables.\n")
editorLoop: editorLoop:
fmt.Printf("\x1b[32m%s\x1b[0m ", "Edit PKGBUILD with:") fmt.Printf("\x1b[32m%s\x1b[0m ", "Edit PKGBUILD with:")