did some slight norming (200 lines of norminette and i'm not even done yet... :c)

This commit is contained in:
mdev9
2024-04-22 19:56:22 +02:00
parent 642a9ab232
commit e4df4a5655
15 changed files with 98 additions and 112 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/21 20:22:09 by tomoron ### ########.fr */
/* Updated: 2024/04/22 19:53:34 by marde-vr ### ########.fr */
/* */
/* ************************************************************************** */
@ -57,14 +57,12 @@ int set_echoctl(int value)
{
struct termios t_p;
//ft_printf("echoctl value : %d\n",value);
if(!isatty(1))
return(0);
if (!isatty(1))
return (0);
if (tcgetattr(1, &t_p))
return (1);
if (((t_p.c_lflag & ECHOCTL) != 0) == value)
return (0);
//ft_printf("change\n");
if (value)
t_p.c_lflag = t_p.c_lflag | ECHOCTL;
else