-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathterm.c
24 lines (21 loc) · 1.06 KB
/
term.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* term.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bmachado <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/12/14 14:59:27 by bmachado #+# #+# */
/* Updated: 2022/02/23 11:53:37 by bmachado ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
void init_term(void)
{
struct termios term;
if (tcgetattr(0, &term) != 0)
return ;
term.c_lflag &= ~ECHOCTL;
if (tcsetattr(0, TCSANOW, &term) != 0)
return ;
}