Skip to content
This repository was archived by the owner on Apr 23, 2024. It is now read-only.
This repository was 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

@danilov-pd

Description

@danilov-pd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions