diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-11-06 22:21:04 +0100 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-11-06 22:21:04 +0100 |
commit | edb4aa1304435b17d62a7d925df2c95bdb854079 (patch) | |
tree | 6fb155b42e8a6d6cf85034b00679583751641722 /src/c_init.c | |
parent | major changes to ctrlc + c, no norm for now (diff) | |
download | 42-minishell-edb4aa1304435b17d62a7d925df2c95bdb854079.tar.gz 42-minishell-edb4aa1304435b17d62a7d925df2c95bdb854079.tar.bz2 42-minishell-edb4aa1304435b17d62a7d925df2c95bdb854079.tar.xz 42-minishell-edb4aa1304435b17d62a7d925df2c95bdb854079.tar.zst 42-minishell-edb4aa1304435b17d62a7d925df2c95bdb854079.zip |
static something
Diffstat (limited to 'src/c_init.c')
-rw-r--r-- | src/c_init.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/c_init.c b/src/c_init.c index 314baad..bf3191f 100644 --- a/src/c_init.c +++ b/src/c_init.c @@ -24,8 +24,6 @@ #include "s_struct.h" #include "m_prompt.h" -t_msh *c_get_struct(int mode, t_msh *msh); - short c_set_term_raw(char mode) { @@ -91,6 +89,7 @@ static char static char *line = NULL; int i; + c_get_struct(1, &msh); i = -1; if (line == NULL) if (!(line = ft_calloc(1, sizeof(char)))) @@ -108,13 +107,9 @@ static char c_redraw_line(line, tcaps, msh); } else if ((*((unsigned int *)buf)) == CTRL_C) - { return (c_ctrl_c(&line, buf, msh)); - } else - { c_read_cap(buf, line, tcaps, msh); - } return ((buf[0] == '\n') ? c_new_line(line, tcaps) : NULL); } @@ -129,7 +124,6 @@ short m_prompt_psx(psx, msh); ft_bzero(nread, 4); tcaps.plen = (unsigned int)m_plen(msh->ps[psx - 1]); - c_get_struct(1, msh); if (!(c_get_win_size(&tcaps.ws))) return (-1); while (!(ft_strchr(nread, '\n'))) |