From 4f64705d26b9a80c49fc15065b557d82b3ac0a97 Mon Sep 17 00:00:00 2001 From: kdx Date: Fri, 13 Jan 2023 17:03:40 +0100 Subject: in color mode don't prefix username with @ --- twtxt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twtxt.c b/twtxt.c index e4e54e9..262eeae 100644 --- a/twtxt.c +++ b/twtxt.c @@ -353,7 +353,7 @@ int main(int argc, char *argv[]) { saved_attributes = consoleInfo.wAttributes; SetConsoleTextAttribute(hConsole, 14); /* 14 = yellow because wtf */ - printf("@%*s", (int) iLongestNickname, ptr[i].username); + printf("%*s", (int) iLongestNickname, ptr[i].username); /* Restore the original values. */ SetConsoleTextAttribute(hConsole, saved_attributes); @@ -369,7 +369,7 @@ int main(int argc, char *argv[]) { #define YELLOW "\x1B[33m" /* lol */ #define WHITE "\x1B[37m" /* actually ... */ #define RESET "\x1B[0m" /* WHY?! */ - printf(YELLOW "@%*s" RESET "%s" WHITE "%s\n" RESET, (int) iLongestNickname, ptr[i].username, spacing, ptr[i].text); + printf(YELLOW "%*s" RESET "%s" WHITE "%s\n" RESET, (int) iLongestNickname, ptr[i].username, spacing, ptr[i].text); # endif #endif } -- cgit v1.2.3