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

ascii_len calculation problem #2265

Closed
1 task done
tobyprime opened this issue Dec 19, 2022 · 2 comments
Closed
1 task done

ascii_len calculation problem #2265

tobyprime opened this issue Dec 19, 2022 · 2 comments

Comments

@tobyprime
Copy link

tobyprime commented Dec 19, 2022

Description

When I use a custom ascii drawing, the color code is also counted as a character length, resulting in a long interval between the ascii logo and the system info.

I think it can add a cmd param to customize ascii_len

  • Does this issue still occur in the master branch? (Required if issue)

Neofetch version

Neofetch 7.1.0

Screenshot

image

@hykilpikonna
Copy link

This is fixed in HyFetch 1.4.0 / neowofetch 7.3.0 by the pull request #1543.

Instead of manually taking in ascii-len as a parameter, the fix in HyFetch automatically calculates the length without color escape sequences.

This PR is merged into hyfetch since this repo (dylanaraps/neofetch) seems no longer maintained.

HyFetch is a fork of neofetch with LGBTQ pride flags, but the repo also maintains an updated version of the original neofetch, addressing many pull requests that are not merged in the original repo.

Read the "Running Updated Original Neofetch" section for more info!

@tobyprime
Copy link
Author

好诶,这就是我希望的

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