diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-12-16 13:13:50 +0100 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-12-16 13:13:50 +0100 |
commit | e3958afc911de2c628aa336893123ac871da3817 (patch) | |
tree | 589f9e45ae0b407a4efdb39fabb5dd913edd55d2 /src/c_keys_next.c | |
parent | qwe (diff) | |
download | 42-minishell-e3958afc911de2c628aa336893123ac871da3817.tar.gz 42-minishell-e3958afc911de2c628aa336893123ac871da3817.tar.bz2 42-minishell-e3958afc911de2c628aa336893123ac871da3817.tar.xz 42-minishell-e3958afc911de2c628aa336893123ac871da3817.tar.zst 42-minishell-e3958afc911de2c628aa336893123ac871da3817.zip |
c_keys_next is now c_utils_next
Diffstat (limited to 'src/c_keys_next.c')
-rw-r--r-- | src/c_keys_next.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/c_keys_next.c b/src/c_keys_next.c deleted file mode 100644 index 58c8946..0000000 --- a/src/c_keys_next.c +++ /dev/null @@ -1,42 +0,0 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* c_keys_next.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ -/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ -/* */ -/* ************************************************************************** */ - -#include <libft.h> -#include <stddef.h> -#include <term.h> - -#include "c_init.h" -#include "c_keys.h" -#include "d_define.h" - -t_msh *c_get_msh(int mode, t_msh *src) -{ - static t_msh *msh; - - if (mode == 1) - { - msh = src; - } - return (msh); -} - -void c_key_up_down(char *line[], t_caps *tcaps, char *ptr) -{ - char tmp[ARG_MAX]; - - c_home_key(tcaps->plen, tcaps); - ft_substr_s(tmp, ptr, 0, ft_strclen(ptr, '\n')); - ft_memdel((void*)&(*line)); - tputs(tgetstr("ce", NULL), 1, ft_putchar); - *line = ft_strdup(tmp); - tcaps->cpos = ft_strlen(*line); -} |