Browse Source

Fixes black on black terminal message. Closes #13

Jguer 8 năm trước cách đây
mục cha
commit
771410bc03
2 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 2 2
      actions.go
  2. 1 1
      util/util.go

+ 2 - 2
actions.go

@@ -225,10 +225,10 @@ func LocalStatistics(version string) error {
 
 	for _, res := range q {
 		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 {
-			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)
 		}
 	}
 

+ 1 - 1
util/util.go

@@ -127,7 +127,7 @@ func Editor() string {
 	} else if os.Getenv("VISUAL") != "" {
 		return os.Getenv("VISUAL")
 	} 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:
 		fmt.Printf("\x1b[32m%s\x1b[0m ", "Edit PKGBUILD with:")