aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-18 22:47:46 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commit10dcfac23be0a8cab39efaaf63abecf098c993db (patch)
tree455dfb6031e7a9f868f5b3f1d05c5f3c46dce2de /src
parent04ec088dfcbdf577987fe7ef93624d67e6d9c2e3 (diff)
Saving cursor position was not a good idea
Diffstat (limited to 'src')
-rw-r--r--src/ctaklm.c4
1 files changed, 2 insertions, 2 deletions
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)) {