ad-oliviero / uwufetch

A meme system info tool for Linux, based on nyan/uwu trend on r/linuxmasterrace.
GNU General Public License v3.0
731 stars 47 forks source link

[FIX] Fixed line rollover for small terminals #210

Closed buzzqrd closed 1 year ago

buzzqrd commented 1 year ago

When using a small terminal, text would flow over into the image and added an extra line between some of the info. The cause of this (i think) is that the control characters being printed counted as characters that take up space during the formatting ("%.*s"). There are 4 of these per line, so I changed it to 4 characters cut off. However, because the PKGS line had an extra 5th unnecessary duplicate "NORMAL" control character, I removed it so that the name of the package manager would not be cut off.

I've attached a before and after screenshot: WM: dwm-6.3 Term: Alacritty

uwufetch_grab2