ad-oliviero / uwufetch

A meme system info tool for Linux, based on nyan/uwu trend on r/linuxmasterrace.
GNU General Public License v3.0
749 stars 52 forks source link

[BUG] Uwufetch does not move the cursor to the end of the output in the tty. #251

Open danilov-pd opened 9 months ago

danilov-pd commented 9 months ago

Describe the bug Uwufetch does not move the cursor to the end of the output in the tty.

To Reproduce Run uwufetch 2.1-36-g280e8d0 on Fedora Linux 37. I assume the cause of the issue is that the Fedora image is shorter than info lines height.

Expected behavior I expected the cursor to move to the end of the output. If I change line 830 in uwufetch.c to int to_move = 9 - print_info(&config_flags, &user_info) + 3; (I basically added 3 to to_move variable), I get the expected behavior. But this is hacky and wouldnt work for everyone, I presume. Maybe the print_info() is the culprit?

Screenshots Behavior of build 2.1-36-g280e8d0 Behavior of build 2.1-36-g280e8d0

Expected behavior after my "fix". (I just added three to to_move) Expected behavior after my "fix".

My shell is bash, I run Fedora 37 system.

Are you already working on this bug? Maybe?? I can tell you what specific funtion, like print_info() outputs on my machine. Thank you.

ad-oliviero commented 9 months ago

Should be fixed in the development branch.

Of course the fix will be available on fedora's repositories after a new uwufetch release will be uploaded