The Wayback Machine - https://web.archive.org/web/20200525150541/https://github.com/dylanaraps/neofetch/issues/1448
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra newline character when calling neofetch #1448

Open
jtorreno opened this issue Apr 21, 2020 · 1 comment
Open

Extra newline character when calling neofetch #1448

jtorreno opened this issue Apr 21, 2020 · 1 comment

Comments

@jtorreno
Copy link

@jtorreno jtorreno commented Apr 21, 2020

Description

Neofetch emits an extra newline character, which I'm led to believe is not intended behavior as per #910.
Issue discovered on latest and reproducible on master.

And of course, a terrible solution, for the glory of none other than Satan:

alias neofetch='function _neofetch() {
    (($# == 0)) && { neofetch | sed -e "40,$ d;s/?25l//g;s/?7l//g" } || neofetch $@
}; _neofetch'

Edit: Looks like removing the extra newline character suffixed on both #L3750 and #L3751 works so far as to do exactly what it sets out to amend.

Neofetch version

% neofetch --version  
Neofetch 7.0.0

Screenshot

screenshot

Verbose log

@jtorreno
Copy link
Author

@jtorreno jtorreno commented Apr 21, 2020

For what it's worth, --color_blocks off behaves as expected, emitting only a single newline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.