/* ** This function will select the right behavement for the string output. */ void ft_select_behavement(t_lst *lst) { if (lst->line == 1 && lst->select == 1) ft_select_underline(lst->value); else if (lst->line == 1) ft_under_line(lst->value); else if (lst->select == 1) ft_print_select(lst->value); else ft_putendl_fd(lst->value, 2); }
int ft_size(t_main *all) { ft_count_cols(all); if (all->nb_lines - 2 < all->cnt_lines || all->nb_cols - 2 < all->cnt_cols) { ft_clear_screen(); ft_putendl_fd("Window size to small", 2); return (0); } else { ft_clear_screen(); ft_print_select(all); } return (1); }