diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-06-30 15:38:13 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-06-30 15:38:13 +0200 |
commit | 95de1193b0211cf521d0bcf687b25757185c5e34 (patch) | |
tree | 1ecb54847b620d5f08b3a9ee6d9582846f84731d /src/ft_m_prompt.c | |
parent | Updated todolist (diff) | |
download | 42-minishell-95de1193b0211cf521d0bcf687b25757185c5e34.tar.gz 42-minishell-95de1193b0211cf521d0bcf687b25757185c5e34.tar.bz2 42-minishell-95de1193b0211cf521d0bcf687b25757185c5e34.tar.xz 42-minishell-95de1193b0211cf521d0bcf687b25757185c5e34.tar.zst 42-minishell-95de1193b0211cf521d0bcf687b25757185c5e34.zip |
Correct shell prompt
Diffstat (limited to '')
-rw-r--r-- | src/ft_m_prompt.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 <libft.h> +#include <unistd.h> + #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); } |