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 --- buildroot-config | 4 ++-- src/ctaklm.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/buildroot-config b/buildroot-config index 648d20f..a7ddbd0 100644 --- a/buildroot-config +++ b/buildroot-config @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# Buildroot -g7828da9-dirty Configuration +# Buildroot -g847ab80 Configuration # BR2_HAVE_DOT_CONFIG=y BR2_HOST_GCC_AT_LEAST_4_9=y @@ -1554,7 +1554,7 @@ BR2_PACKAGE_WPEWEBKIT_ARCH_SUPPORTS=y # Hardware handling # # BR2_PACKAGE_ACSCCID is not set -# BR2_PACKAGE_BCM2835 is not set +BR2_PACKAGE_BCM2835=y # BR2_PACKAGE_C_PERIPHERY is not set # BR2_PACKAGE_CCID is not set # BR2_PACKAGE_DTC is not set 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.2.3