summaryrefslogtreecommitdiffstats
path: root/src/c_input.c
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-09-11 11:54:03 +0200
committersalad <fmoenne-@student.le-101.fr>2020-09-11 11:54:03 +0200
commit1692db53ad552b34db7f321e603c32ca7453b253 (patch)
treee214bc4fc9223e9287c726a32a8897940185dfbc /src/c_input.c
parentLITERALLY C89 (diff)
download42-minishell-1692db53ad552b34db7f321e603c32ca7453b253.tar.gz
42-minishell-1692db53ad552b34db7f321e603c32ca7453b253.tar.bz2
42-minishell-1692db53ad552b34db7f321e603c32ca7453b253.tar.xz
42-minishell-1692db53ad552b34db7f321e603c32ca7453b253.tar.zst
42-minishell-1692db53ad552b34db7f321e603c32ca7453b253.zip
might finish today, ctrl + a few bugs
Diffstat (limited to '')
-rw-r--r--src/c_input.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/c_input.c b/src/c_input.c
index fa61c6a..f92a784 100644
--- a/src/c_input.c
+++ b/src/c_input.c
@@ -54,6 +54,16 @@ int16_t
}
int16_t
+ c_ctrl_l(char *line,
+ t_caps *tcaps,
+ t_msh *msh)
+{
+ tputs(tgetstr("cl", NULL), 1, ft_putchar);
+ c_redraw_line(line, tcaps->cpos, msh);
+ return (1);
+}
+
+int16_t
c_key_right(uint32_t len,
t_caps *tcaps)
{