dylanaraps / neofetch

🖼️ A command-line system information tool written in bash 3.2+
MIT License
21.93k stars 1.76k forks source link

ascii_len calculation problem #2265

Closed tobyprime closed 1 year ago

tobyprime commented 1 year ago

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

Neofetch version

Neofetch 7.1.0

Screenshot

image

hykilpikonna commented 1 year ago

This is fixed in HyFetch 1.4.0 / neowofetch 7.3.0 by the pull request https://github.com/dylanaraps/neofetch/pull/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 commented 1 year ago

好诶,这就是我希望的