lavat

Un fork de lavat pour pouvoir y ajouter des titres - retour accueil

git clone git://bebou.netlib.re/lavat
Log | Files | Refs | README | LICENSE |

commit fc6b037f3995f3991fb36920f715f7d976966e7e
parent 10a255ce849296bfc95fe2b750adad3192aea664
Auteurice: Angel Jumbo <anarjumb@gmail.com>
Date:   Thu, 10 Nov 2022 21:04:58 -0500

Bug fix -k color with no rim

Diffstat:
Mlavat.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lavat.c b/lavat.c @@ -16,7 +16,7 @@ typedef struct { static char *custom = NULL; static short color = TB_DEFAULT; -static short color2 = TB_BOLD; +static short color2 = TB_DEFAULT; static int nballs = 10; static short speedMult = 1; static short rim = 0; @@ -57,8 +57,8 @@ int main(int argc, char *argv[]) { char *custom2 = custom; - if (color2 == TB_BOLD) - color2 = color | color2; + if (color2 == TB_DEFAULT || !rim) + color2 = color | TB_BOLD; if (custom && strlen(custom) > 1 && rim) { custom2 = custom + 1;