uwufetch icon indicating copy to clipboard operation
uwufetch copied to clipboard

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

Open danilov-pd opened this issue 1 year ago • 1 comments

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.

danilov-pd avatar Feb 20 '24 16:02 danilov-pd

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

ad-oliviero avatar Feb 27 '24 18:02 ad-oliviero