From 25055b63dc7994fb386016adacaf4770e642f134 Mon Sep 17 00:00:00 2001 From: Dietrich Epp Date: Wed, 24 Mar 2021 01:23:09 -0400 Subject: [PATCH] Spin cursor during tool execution GitOrigin-RevId: 3e081374ffbad7e8b5359892733c4b0463fc6a43 --- sync.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sync.c b/sync.c index 791759b..7f0642d 100644 --- a/sync.c +++ b/sync.c @@ -1,5 +1,6 @@ #include "defs.h" +#include #include #include #include @@ -314,6 +315,7 @@ static int command_main(char *localPath, char *remotePath, int mode) { } // Synchronize the files. + InitCursorCtl(NULL); if (mode == kModePull) { r = mac_from_unix_init(); if (r != 0) { @@ -339,6 +341,7 @@ static int command_main(char *localPath, char *remotePath, int mode) { if (gLogLevel >= kLogInfo) { fprintf(stderr, "## %s: %s\n", kActionName[file->action], name); } + SpinCursor(32); r = sync_file(&array[i], func, srcVol, srcDir, destVol, destDir, tempVol, tempDir); if (r != 0) {