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

Degree Symbol ° Issue #2

Open
ghost opened this issue Jan 8, 2022 · 5 comments
Open

Degree Symbol ° Issue #2

ghost opened this issue Jan 8, 2022 · 5 comments

Comments

@ghost
Copy link

ghost commented Jan 8, 2022

The degree symbol, sometimes works, sometimes display other symbol character before the "°".

When it doesn't shows correctly, appears like:
cpu temp 31°

When it does works fine display:
cpu temp 31°

Please could you check the degree symbol if can be fixed constantly? Thank you!

Tested on
lolcat-cc used as a binary from tags
Devuan/Testing 5 // Debian/Testing 12
rxvt-unicode 9.30-2+b1
bash 5.1-5+b1

@n-ham
Copy link
Owner

n-ham commented Jan 8, 2022

Does it work okay if you use lolcat-cc -f? I recommend using the -f format option, the benchmarks are run with -f on, though it is probably even faster without if there's no special characters to worry about, or animations etc..

@ghost
Copy link
Author

ghost commented Jan 21, 2022

Sorry for the late reply, i was with no internet for a week.

Infact i currently use with "-f"

This is a simple alias that i use to call my fetchinfo with lolcat-cc
alias bashcatc="~/.scripts/bashcat | ~/.scripts/lolcat-cc -f"

When it display ok
2022-01-21--1642789839_484x332_scrot
When it display with extra wrong symbol
2022-01-21--1642789858_480x330_scrot

@n-ham
Copy link
Owner

n-ham commented Jan 26, 2022

I have hopefully fixed this issue now, though was unable to repeat the error on my ubuntu machine so would love it if you could check whether the error was always there using lolcat-cc -f -tw=1 or with echo "°°°°°°°°°°°°°°°°°°°" | lolcat-cc -f before you update to the new version?

Also if the error is fixed now, could you try commenting out first line 206 then line 207 of the new version to work out what actually fixed it? It would be nice if I could remove line 207 again.

Thanks for reporting the issue. If you're interested in a shell (extension) with lolcat-cc turned on all the time check out https://nift.dev/docs/REPL.html (ie. install Nift, then start using nift sh then lolcat.on, you can set up an RC script to turn lolcat on when the shell starts too if you like).

@ghost
Copy link
Author

ghost commented Jan 30, 2022

It is the same concern with both commands.

Not always, but once i use the command several times then it is noticed.

+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f
°°Â°°Â°°Â°°Â°°Â°°Â°°Â°°Â°°Â°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f
°°°°°°°°°°°°°°°°°°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f
°°°°°°°°°°°°°°°°°°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f
°°°°°°°°°°°°°°°°°°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f
°°°°°°°°°°°°°°°°°°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f
°Â°°Â°°Â°°Â°°Â°°Â°°Â°°Â°°Â°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°°°°°°°°°°°°°°°°°°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°°°°°°°°°°°°°°°°°°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°°°°°°°°°°°°°°°°°°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°°°°°°°°°°°°°°°°°°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°°°°°°°°°°°°°°°°°°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°°°°°°°°°°°°°°°°°°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°°°°°°°°°°°°°°°°°°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°Â°°Â°°Â°°Â°°Â°°Â°°Â°°Â°°Â°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°°Â°°Â°°Â°°Â°°Â°°Â°°Â°°Â°°Â°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°°°°°°°°°°°°°°°°°°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°°°°°°°°°°°°°°°°°°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°°°°°°°°°°°°°°°°°°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°°Â°°Â°°Â°°Â°°Â°°Â°°Â°°Â°°Â°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°°Â°°Â°°Â°°Â°°Â°°Â°°Â°°Â°°Â°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°°Â°°Â°°Â°°Â°°Â°°Â°°Â°°Â°°Â°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°°°°°°°°°°°°°°°°°°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°°°°°°°°°°°°°°°°°°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°°°°°°°°°°°°°°°°°°°
+ echo "°°°°°°°°°°°°°°°°°°°" | ~/.scripts/lolcat-cc -f -tw=1
°°°°°°°°°°°°°°°°°°°

This test is made with the previous version.


With new version doesn't show that extra "Â", but doesn't cover all text colors from my fetch.
2022-01-30--1643552148_466x339_scrot

@ghost
Copy link
Author

ghost commented Mar 21, 2022

I changed fetch-info to neofetch. Everything is fine with neofetch, something did not go well with previous fetch.

So, degree symbol is fixed and displays lolcat-cc fine on neofetch.

Please close this ticket as Solved.

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

No branches or pull requests

1 participant