From fc064608e997d3bf95aeddd386804251acc78117 Mon Sep 17 00:00:00 2001 From: ygor-sena Date: Thu, 6 Jun 2024 14:04:01 -0300 Subject: [PATCH] fix: remove overwritting when reaching prompt line limit --- src/minishell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/minishell.c b/src/minishell.c index 087ee6a..d3b6bf0 100644 --- a/src/minishell.c +++ b/src/minishell.c @@ -6,13 +6,13 @@ /* By: yde-goes +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/11/08 11:06:36 by mdias-ma #+# #+# */ -/* Updated: 2023/01/20 16:47:16 by yde-goes ### ########.fr */ +/* Updated: 2024/06/06 14:03:51 by yde-goes ### ########.fr */ /* */ /* ************************************************************************** */ #include "minishell.h" -#define GREEN_PROMPT "\e[m\e[1;32m❯ \e[m" +#define GREEN_PROMPT "\001\e[m\e[1;32m❯ \e[m\002" static void msh_loop(void); static void prompt_logo(void);