diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-12 02:10:45 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-12 02:10:45 -0500 |
| commit | 097535450b09bd255a36e2e957064d59d9b48b39 (patch) | |
| tree | 392b27f6db4cc5d56c78baeb0b182fbdf78945f0 /nextlang.c | |
| parent | 73b79e0f69c1300b74996b9e85b4503c89954a54 (diff) | |
Disable 'bat' paging
Diffstat (limited to 'nextlang.c')
| -rw-r--r-- | nextlang.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -31,13 +31,13 @@ int main(int argc, char *argv[]) bool verbose = (getenv("VERBOSE") && strcmp(getenv("VERBOSE"), "1") == 0); if (verbose) { - FILE *out = popen(heap_strf("bat --file-name='%s'", argv[1]), "w"); + FILE *out = popen(heap_strf("bat -P --file-name='%s'", argv[1]), "w"); fputs(f->text, out); fclose(out); } if (verbose) { - FILE *out = popen("bat --file-name=AST", "w"); + FILE *out = popen("bat -P --file-name=AST", "w"); fputs(ast_to_str(ast), out); fclose(out); } @@ -107,7 +107,7 @@ int main(int argc, char *argv[]) program = CORD_cat(program, "return 0;\n}\n"); if (verbose) { - FILE *out = popen(heap_strf("%s | bat --file-name=program.c", autofmt), "w"); + FILE *out = popen(heap_strf("%s | bat -P --file-name=program.c", autofmt), "w"); CORD_put(program, out); fclose(out); } @@ -122,7 +122,7 @@ int main(int argc, char *argv[]) const char *run = heap_strf("tcc %s %s -run -", cflags, ldlibs); if (verbose) - run = heap_strf("%s | bat --file-name=STDOUT", run); + run = heap_strf("%s | bat -P --file-name=STDOUT", run); FILE *cc = popen(run, "w"); CORD_put(program, cc); fclose(cc); |
