From d39e6997cf2364e5973218077272825483582a1a Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Sun, 20 Jun 2021 12:02:38 -0400 Subject: [PATCH] add color to the console line --- src/console_line.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/console_line.c b/src/console_line.c index c316297..dab2281 100644 --- a/src/console_line.c +++ b/src/console_line.c @@ -20,6 +20,7 @@ #include #include #include +#include "color.h" /** * Get the logged in user's username. @@ -53,7 +54,7 @@ char *get_working_directory() { void print_input_line() { char *name = get_user(); char *cwd = get_working_directory(); - printf("%s:%s $ ", name, cwd); + printf(BRIGHT_CYAN "%s" MAGENTA "@" RED "localhost" MAGENTA ":" BLUE "%s" MAGENTA "$ " RESET, name, cwd); free(name); free(cwd); }