From 10dcfac23be0a8cab39efaaf63abecf098c993db Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Mon, 18 Jan 2021 22:47:46 -0500 Subject: Saving cursor position was not a good idea --- src/ctaklm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ctaklm.c') diff --git a/src/ctaklm.c b/src/ctaklm.c index f1bb7cd..5ae0a3b 100644 --- a/src/ctaklm.c +++ b/src/ctaklm.c @@ -311,12 +311,12 @@ ct1986_turn(const uint8_t search_depth) { // Prepare progress bar fputs("Computing [", stdout); for (int k = 0; k < board_size * board_size; k++) putchar(' '); - fputs("] \033[s\033[27D",stdout); + fputs("]\033[26D",stdout); fflush(stdout); // Run the minimax sum_depth = 0; num_check = 0; float minimax = ct1986_generate(search_depth); - fputs("\033[u", stdout); + fputs("\033[1C ", stdout); // Failed to find a move? if ((minimax <= -infty && (ply & 1) == 1) ||(minimax >= infty && (ply & 1) == 0)) { -- cgit v1.3.1