flush stdout after writing % complete instead of waiting for line buffering

git-svn-id: svn://anubis/fart/trunk@266 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop 2010-07-01 13:51:20 +00:00
parent 781b46dcd4
commit 7a3ed0213b

View File

@ -273,6 +273,7 @@ int main(int argc, char * argv[])
{
double pct = 100.0 * pixel_num / (double) total_pixels;
printf("\e[8D%2.1f%%", pct);
fflush(stdout);
}
}
}