Merge pull request #112 from dqnk/main
Fixed output being too high when terminal prompt is at the bottom of the terminal
This commit is contained in:
commit
a93be06e0a
1 changed files with 4 additions and 0 deletions
|
@ -152,7 +152,11 @@ int main(int argc, char *argv[])
|
||||||
if (argc == 1)
|
if (argc == 1)
|
||||||
parse_config();
|
parse_config();
|
||||||
if ((argc == 1 && ascii_image_flag == 0) || (argc > 1 && ascii_image_flag == 0))
|
if ((argc == 1 && ascii_image_flag == 0) || (argc > 1 && ascii_image_flag == 0))
|
||||||
|
{
|
||||||
|
printf("\n"); // print a new line
|
||||||
|
printf("\033[1A"); // go up one line if possible
|
||||||
print_ascii();
|
print_ascii();
|
||||||
|
}
|
||||||
else if (ascii_image_flag == 1)
|
else if (ascii_image_flag == 1)
|
||||||
print_image();
|
print_image();
|
||||||
uwu_kernel();
|
uwu_kernel();
|
||||||
|
|
Loading…
Reference in a new issue