/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* u_init.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rbousset +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ /* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ /* */ /* ************************************************************************** */ #include #include void u_handle_sigwinch(int dummy_signal) { (void)dummy_signal; tputs(LC, 1, ft_putchar); fflush(stdout); } int16_t c_init_tcaps(void) { char *bp; char *term; char *LC; term = getenv("TERM"); tgetent(bp, term); LC = tgetstr("lc", &term); }