[hackers] [lchat] change and fix colors || Jan Klemkow

From: <git_AT_suckless.org>
Date: Mon, 2 Apr 2018 00:29:28 +0200 (CEST)

commit c857fde6775979c260b7b56c5271efee089d7722
Author: Jan Klemkow <j.klemkow_AT_wemelug.de>
AuthorDate: Tue Mar 13 17:52:18 2018 +0100
Commit: Jan Klemkow <j.klemkow_AT_wemelug.de>
CommitDate: Wed Mar 14 00:02:59 2018 +0100

    change and fix colors

diff --git a/filter/indent.c b/filter/indent.c
index aaf0327..b45727c 100644
--- a/filter/indent.c
+++ b/filter/indent.c
_AT_@ -7,7 +7,7 @@
 #include <unistd.h>
 
 #define color1 34
-#define color2 36
+#define color2 33
 
 int
 main(void)
_AT_@ -44,7 +44,8 @@ main(void)
 
                 /* print prompt */
                 /* HH:MM nnnnnnnnnnnn ttttttttttttt */
- printf("\033[%dm%s %*s", color, timestr, 12,
+ // e[7;30;40m
+ printf("\033[1;%dm\033[K%s %*s", color, timestr, 12,
                     strcmp(nick, old_nick) == 0 ? "" : nick);
 
                 strlcpy(old_nick, nick, sizeof old_nick);
_AT_@ -66,7 +67,7 @@ main(void)
                         fputs(word, stdout);
                         first = false;
                 }
- fputs("\033[0m", stdout); /* turn color off */
+ fputs("\033[0m\033[K", stdout); /* turn color off */
                 fflush(stdout);
         }
 
Received on Mon Apr 02 2018 - 00:29:28 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 02 2018 - 00:36:24 CEST