Hide cursor when drawing images

This commit is contained in:
Kevin Lange 2016-09-26 10:15:08 +09:00
parent 11d0c2d9fe
commit 715b39ae8e

View File

@ -60,6 +60,7 @@ int main (int argc, char * argv[]) {
if (image.height % h) height_in_cells++;
raw_output();
printf("\033[?25l");
for (int y = 0; y < height_in_cells; y++) {
for (int x = 0; x < width_in_cells; x++) {
@ -86,7 +87,9 @@ int main (int argc, char * argv[]) {
}
}
printf("\033[?25h");
unraw_output();
fflush(stdout);
return 0;
}