summaryrefslogtreecommitdiffstats
path: root/src/c_init.c
diff options
context:
space:
mode:
authorjoe <rbousset@42lyon.fr>2020-11-30 17:34:00 +0100
committerjoe <rbousset@42lyon.fr>2020-11-30 17:34:00 +0100
commit75bad8f18024e8b4dbb9700329cfb888ae1e3dc3 (patch)
treeb8fe22aa34e578191d165ed2486b272e66e65f5e /src/c_init.c
parentget normed (diff)
download42-minishell-75bad8f18024e8b4dbb9700329cfb888ae1e3dc3.tar.gz
42-minishell-75bad8f18024e8b4dbb9700329cfb888ae1e3dc3.tar.bz2
42-minishell-75bad8f18024e8b4dbb9700329cfb888ae1e3dc3.tar.xz
42-minishell-75bad8f18024e8b4dbb9700329cfb888ae1e3dc3.tar.zst
42-minishell-75bad8f18024e8b4dbb9700329cfb888ae1e3dc3.zip
In progress
Diffstat (limited to '')
-rw-r--r--src/c_init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/c_init.c b/src/c_init.c
index 2ba73f5..5e09031 100644
--- a/src/c_init.c
+++ b/src/c_init.c
@@ -88,6 +88,9 @@ static short
return (c_end_key(ft_strlen(line), tcaps->plen, tcaps));
else if ((*((unsigned int *)buf)) == CTRL_L)
return (c_ctrl_l(line, tcaps, msh));
+ else if (((*((unsigned int *)buf)) == UP_K) ||
+ ((*((unsigned int *)buf)) == CTRL_P))
+ return (ft_dprintf(0, "qweqwe\n"));
else if ((*((unsigned int *)buf)) == CTRL_D &&
line[0] == '\0')
{