From a0dc771ceac166b52904c881771484cfaa0b9544 Mon Sep 17 00:00:00 2001 From: Alex Thannhauser Date: Thu, 17 Jul 2025 11:27:08 -0500 Subject: [PATCH] added disabling autowrap --- main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index f463792..18626ca 100644 --- a/main.c +++ b/main.c @@ -616,6 +616,12 @@ void calculate_simplifications(void) append(0, 1), lookup[0].kind = ek_0; append(M, 1), lookup[M].kind = ek_1; + // disable terminal autowrap: + if (verbose && print_with_color) + { + printf("\e[?7l"); + } + for (int iterations = 1; todo.n && iterations <= N; iterations++) { uint16_t truthtable = pop(); @@ -823,7 +829,7 @@ void calculate_simplifications(void) if (verbose && print_with_color) { - printf("\e[2K"); + printf("\e[2K" "\e[?7h"); } }