/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* c_keys_next.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rbousset +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ /* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ /* */ /* ************************************************************************** */ #include #include #include #include "c_init.h" #include "d_define.h" #include "s_struct.h" short c_key_up(t_caps *tcaps, t_msh *msh) { /* static char *ptr; */ /* static t_bool set = TRUE; */ /* */ /* if (set == TRUE) */ /* { */ /* ptr = msh->curr_hist_ptr + ft_strlen(msh->curr_hist_ptr); */ /* set = FALSE; */ /* } */ /* while (ptr - msh->curr_hist_ptr != 0 && *ptr != '\n') */ /* { */ /* ft_printf("{%c}\n", *ptr); */ /* ptr--; */ /* } */ /* ptr += 1; */ /* ft_dprintf(1, "[%s]\n", ptr); */ (void)msh; (void)tcaps; ft_dprintf(0, "qwe"); /* tcaps->cpos = 0; */ /* tcaps->lpos = 0; */ /* tputs(tgetstr("nd", NULL), 1, ft_putchar); */ return (1); }