diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-18 22:47:46 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | 10dcfac23be0a8cab39efaaf63abecf098c993db (patch) | |
| tree | 455dfb6031e7a9f868f5b3f1d05c5f3c46dce2de | |
| parent | 04ec088dfcbdf577987fe7ef93624d67e6d9c2e3 (diff) | |
Saving cursor position was not a good idea
| -rw-r--r-- | buildroot-config | 4 | ||||
| -rw-r--r-- | 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)) { |
