Ver Fonte

ignore stderr in tput call

Laytan Laats há 2 anos atrás
pai
commit
f4e87c9720
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/main.cpp

+ 1 - 1
src/main.cpp

@@ -2563,7 +2563,7 @@ gb_internal void init_terminal(void) {
 		}
 		}
 	}
 	}
 #elif defined(GB_SYSTEM_OSX) || defined(GB_SYSTEM_UNIX)
 #elif defined(GB_SYSTEM_OSX) || defined(GB_SYSTEM_UNIX)
-    FILE* file = popen("tput colors", "r");
+    FILE* file = popen("tput colors 2>/dev/null", "r");
     if (file) {
     if (file) {
         char buffer[20];
         char buffer[20];
         if (fgets(&buffer[0], 20, file)) {
         if (fgets(&buffer[0], 20, file)) {