diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-18 19:27:57 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-18 19:27:57 +0200 |
commit | c4617f7a2499bd81c49963291688977e3153d00f (patch) | |
tree | 75eb5c32f3d0b136f2f823217e0ee177b2fc2c94 /src/m_loop.c | |
parent | HUGE pain in the ass finally over (diff) | |
download | 42-minishell-c4617f7a2499bd81c49963291688977e3153d00f.tar.gz 42-minishell-c4617f7a2499bd81c49963291688977e3153d00f.tar.bz2 42-minishell-c4617f7a2499bd81c49963291688977e3153d00f.tar.xz 42-minishell-c4617f7a2499bd81c49963291688977e3153d00f.tar.zst 42-minishell-c4617f7a2499bd81c49963291688977e3153d00f.zip |
prompt rice
Diffstat (limited to 'src/m_loop.c')
-rw-r--r-- | src/m_loop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/m_loop.c b/src/m_loop.c index 84efddf..2521204 100644 --- a/src/m_loop.c +++ b/src/m_loop.c @@ -65,7 +65,7 @@ void while (gnl > 0 && ((!(quote = ft_strrchr(buf, '\"'))) && (!(quote = ft_strrchr(buf, '\''))))) { - m_cont_prompt(); + m_prompt_psx(2, msh); gnl = get_next_line(STDIN_FILENO, &line); buf = strjoin_m(buf, line, 0); ft_memdel((void*)&line); @@ -92,7 +92,7 @@ uint8_t while (gnl > 0) { if (fd == STDIN_FILENO) - m_prompt(msh); + m_prompt_psx(1, msh); gnl = get_next_line(fd, &line); if (line[0] != '\0') { |