This commit is contained in:
TheDarkBug 2023-06-07 10:00:11 +02:00
parent 1ae9ba0d2e
commit 86fe2530cb
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -12,3 +12,4 @@ uwufetch_*
*.so
*.a
*.dSYM
.nvim-session

View File

@ -829,7 +829,8 @@ int main(int argc, char* argv[]) {
printf("\033[%dA", config_flags.show_image ? print_image(&user_info) : print_ascii(&user_info));
// print info and move cursor down if the number of printed lines is smaller that the default image height
printf("\033[%dB", 9 - print_info(&config_flags, &user_info));
int to_move = 9 - print_info(&config_flags, &user_info);
printf("\033[%d%c", to_move < 0 ? -to_move : to_move, to_move < 0 ? 'A' : 'B');
LOG_I("Execution completed successfully!");
return 0;
}