summaryrefslogtreecommitdiffstats
path: root/src/c_keys_next.c
blob: 99f01b9939f08d1cc73c1731e31a39c675715973 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   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 "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);
}