mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-03 19:52:30 +00:00
ignore stderr in tput call
This commit is contained in:
@@ -2563,7 +2563,7 @@ gb_internal void init_terminal(void) {
|
||||
}
|
||||
}
|
||||
#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) {
|
||||
char buffer[20];
|
||||
if (fgets(&buffer[0], 20, file)) {
|
||||
|
||||
Reference in New Issue
Block a user