From 95de1193b0211cf521d0bcf687b25757185c5e34 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 30 Jun 2020 15:38:13 +0200 Subject: Correct shell prompt --- src/ft_m_prompt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ft_m_prompt.c') diff --git a/src/ft_m_prompt.c b/src/ft_m_prompt.c index d6a73fd..4c4cc41 100644 --- a/src/ft_m_prompt.c +++ b/src/ft_m_prompt.c @@ -11,18 +11,20 @@ /* ************************************************************************** */ #include +#include + #include "ft_m_prompt.h" #include "ft_s_struct.h" void ft_m_cont_prompt(void) { - ft_printf("> "); + ft_dprintf(STDIN_FILENO, "> "); /* TODO :ft_printf("%s", msh->ps_two); */ } void ft_m_prompt(t_msh *msh) { - ft_printf("%s", msh->ps_one); + ft_dprintf(STDIN_FILENO, "%s", msh->ps_one); } -- cgit v1.2.3