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:
TheDarkBug 2021-07-21 21:42:41 +02:00 committed by GitHub
commit a93be06e0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,7 +152,11 @@ int main(int argc, char *argv[])
if (argc == 1)
parse_config();
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();
}
else if (ascii_image_flag == 1)
print_image();
uwu_kernel();