Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

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

Open
danilov-pd opened this issue Feb 20, 2024 · 1 comment

Comments

@danilov-pd
Copy link

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 danilov-pd changed the title [BUG] [BUG] Uwufetch does not move the cursor to the end of the output in the tty. Feb 20, 2024
@ad-oliviero
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants