aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-01-13 17:03:40 +0100
committerkdx <kikoodx@paranoici.org>2023-01-13 17:03:40 +0100
commit4f64705d26b9a80c49fc15065b557d82b3ac0a97 (patch)
tree191141704bf8969f02838d38001a35178ece0061
parentafa8fba1de95952ee31335aa23072047e9ab3508 (diff)
downloadtwtxtc-main.tar.gz
in color mode don't prefix username with @HEADmain
-rw-r--r--twtxt.c4
1 files 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
}