From ad1f44c7ff032c3b20d493805e544cd70ed4bb89 Mon Sep 17 00:00:00 2001 From: salad Date: Wed, 26 Aug 2020 18:44:24 +0200 Subject: s**** f***** --- src/c_init.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/c_init.c (limited to 'src/c_init.c') diff --git a/src/c_init.c b/src/c_init.c new file mode 100644 index 0000000..5cf46f3 --- /dev/null +++ b/src/c_init.c @@ -0,0 +1,32 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* 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); +} -- cgit v1.2.3