aboutsummaryrefslogtreecommitdiff
path: root/tomo.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-18 17:47:56 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-18 17:47:56 -0400
commitf61e6402bdba7f2a6c6a371b28288db6ea8979d0 (patch)
treef5ecc3d6944d83c501efbbc6fc70d103cb08d6be /tomo.c
parentaf982cde4eaedcc154a466a8cb2c4135fdaf3d86 (diff)
More verbose text output fixes
Diffstat (limited to 'tomo.c')
-rw-r--r--tomo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tomo.c b/tomo.c
index 7edaa213..07c5880f 100644
--- a/tomo.c
+++ b/tomo.c
@@ -26,7 +26,7 @@
#include "typecheck.h"
#include "types.h"
-#define run_cmd(...) ({ const char *_cmd = heap_strf(__VA_ARGS__); if (verbose) printf("\033[33m%s\033[m", _cmd); popen(_cmd, "w"); })
+#define run_cmd(...) ({ const char *_cmd = heap_strf(__VA_ARGS__); if (verbose) printf("\033[34;1m%s\033[m\n", _cmd); popen(_cmd, "w"); })
#define array_str(arr) Text$as_c_string(Text$join(Text(" "), arr))
static const char *paths_str(Array_t paths) {
@@ -185,7 +185,7 @@ int main(int argc, char *argv[])
else if (files.length != 1)
errx(1, "Too many files specified!");
- quiet = true;
+ quiet = !verbose;
Path_t path = *(Path_t*)files.data;
env_t *env = global_env();