woodruffw / screenfetch-c

A rewrite of screenFetch in C.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

user@host is misaligned

jamesrobb opened this issue · comments

Hello,

I have managed to modify the source code so that way the colours are the ones I would like, but I haven't seen where in the code I can fix the alignment issue with the user@host part of the displayed output. Attached is an image of what I mean.

Can someone be of help in letting me know how I can fix this?

http://imgur.com/qPFFVuC

Hi @jamesrobb,

Looks like there's an extra space in the Ubuntu logo (logos.c#107):

diff --git a/src/logos.c b/src/logos.c
index 38f8c36..9f5fce9 100644
--- a/src/logos.c
+++ b/src/logos.c
@@ -104,7 +104,7 @@ char *lmde_logo[] =
 /* 18 */
 char *ubuntu_logo[] =
 {
-   ""TLRD"                          ./+o+-       " TNRM,
+   ""TLRD"                          ./+o+-      " TNRM,
    ""TWHT"                  yyyyy- "TLRD"-yyyyyy+     " TNRM,
    ""TWHT"               "TWHT"://+//////"TLRD"-yyyyyyo     " TNRM,
    ""TYLW"           .++ "TWHT".:/++++++/-"TLRD".+sss/`     " TNRM,

I'll be fixing it on the master branch in a few seconds - thanks for finding it!

Thanks!