From 45f0647bcc926506ff850b371a7346197ce09e70 Mon Sep 17 00:00:00 2001 From: dqnk Date: Wed, 21 Jul 2021 21:39:17 +0200 Subject: [PATCH 1/2] fixed #111 (hopefully) --- uwufetch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/uwufetch.c b/uwufetch.c index 6842ab6..a3d296d 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -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"); + printf("\033[1A"); // to align info text print_ascii(); + } else if (ascii_image_flag == 1) print_image(); uwu_kernel(); From 54bb079c6ba652d5c1fdc5acb64d123a666e7a12 Mon Sep 17 00:00:00 2001 From: dqnk <64268180+dqnk@users.noreply.github.com> Date: Wed, 21 Jul 2021 21:42:32 +0200 Subject: [PATCH 2/2] Update uwufetch.c Added comments which should hopefully explain the behavior correctly. --- uwufetch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uwufetch.c b/uwufetch.c index a3d296d..3a838e6 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -153,8 +153,8 @@ int main(int argc, char *argv[]) parse_config(); if ((argc == 1 && ascii_image_flag == 0) || (argc > 1 && ascii_image_flag == 0)) { - printf("\n"); - printf("\033[1A"); // to align info text + printf("\n"); // print a new line + printf("\033[1A"); // go up one line if possible print_ascii(); } else if (ascii_image_flag == 1)