summaryrefslogtreecommitdiffstats
path: root/src/c_ctrls.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-12-18 16:04:14 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-12-18 16:04:14 +0100
commit7629736298b29ad5be833c11d338ab3abe236917 (patch)
tree8c4161357ae75109bcc7b8bf38bcd8b985ea3774 /src/c_ctrls.c
parentMerge (diff)
parentPush (diff)
download42-minishell-7629736298b29ad5be833c11d338ab3abe236917.tar.gz
42-minishell-7629736298b29ad5be833c11d338ab3abe236917.tar.bz2
42-minishell-7629736298b29ad5be833c11d338ab3abe236917.tar.xz
42-minishell-7629736298b29ad5be833c11d338ab3abe236917.tar.zst
42-minishell-7629736298b29ad5be833c11d338ab3abe236917.zip
Merged branch 'gnu-compat'
Diffstat (limited to 'src/c_ctrls.c')
-rw-r--r--src/c_ctrls.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/c_ctrls.c b/src/c_ctrls.c
index 58b4517..af0528e 100644
--- a/src/c_ctrls.c
+++ b/src/c_ctrls.c
@@ -17,23 +17,13 @@
#include <term.h>
#include "c_ctrls.h"
+#include "c_utils_next.h"
#include "c_utils.h"
#include "m_prompt.h"
#include "m_loop.h"
#include "s_destroy.h"
#include "u_utils.h"
-t_msh *c_get_msh(int mode, t_msh *src)
-{
- static t_msh *msh;
-
- if (mode == 1)
- {
- msh = src;
- }
- return (msh);
-}
-
short c_ctrl_d(t_msh *msh)
{
int tmp;
@@ -76,7 +66,6 @@ void c_signal_int(int signo)
write(1, "\n", 1);
msh = c_get_msh(0, msh);
msh->sig = 130;
- ioctl(1, TIOCSTI, "\002");
}
void c_signal_ign(int signo)