Dim '[', '/' and ']' chars in output

This commit is contained in:
Nathan Fisher 2024-04-17 14:42:05 -04:00
parent 11d8d8fa5a
commit 26fd49485a
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
runner

View file

@ -42,7 +42,7 @@ int main(int argc, char *argv[]) {
printf("\n\t=== \033[0;33mRunning %i tests\033[0m ===\n\n", total);
for (i = 1; i < argc; i++) {
snprintf(cmd, 100, "./%s", argv[i]);
printf("[%03i/%03i] %-25s", i, total, argv[i]);
printf("\033[0;2m[\033[0m%03i\033[0;2m/\033[0m%03i\033[0;2m]\033[0m %-25s", i, total, argv[i]);
pipe = popen(cmd, "w");
read = fread(&output, 1, 500, pipe);
ret = pclose(pipe);