i think i never speedran the norm like this before

This commit is contained in:
mdev9
2024-04-18 21:50:23 +02:00
parent 5da5968deb
commit fb62d4ceed
32 changed files with 169 additions and 158 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/22 14:31:13 by tomoron #+# #+# */
/* Updated: 2024/04/18 17:56:05 by tomoron ### ########.fr */
/* Updated: 2024/04/18 20:57:35 by marde-vr ### ########.fr */
/* */
/* ************************************************************************** */
@ -60,21 +60,21 @@ int set_echoctl(int value)
//ft_printf("echoctl value : %d\n",value);
if (tcgetattr(1, &t_p))
{
fprintf(stderr, "minishell: an error occured while getting the local fl\
ags\n");
//fprintf(stderr, "minishell: an error occured while getting the local fl\
//ags\n");
return (1);
}
if (((t_p.c_lflag & ECHOCTL) != 0) == value)
return (0);
ft_printf("change\n");
//ft_printf("change\n");
if (value)
t_p.c_lflag = t_p.c_lflag | ECHOCTL;
else
t_p.c_lflag = t_p.c_lflag & (~ECHOCTL);
if (tcsetattr(1, TCSANOW, &t_p))
{
fprintf(stderr, "minishell: an error occured while setting the local fl\
ags\n");
//fprintf(stderr, "minishell: an error occured while setting the local fl\
//ags\n");
return (1);
}
return (0);