diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-08-26 18:44:24 +0200 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-08-26 18:44:24 +0200 |
commit | ad1f44c7ff032c3b20d493805e544cd70ed4bb89 (patch) | |
tree | ef5b2f5408646ec27e0503a69057c8ba6b8aff3b /src/c_init.c | |
parent | handlesigw (diff) | |
download | 42-minishell-ad1f44c7ff032c3b20d493805e544cd70ed4bb89.tar.gz 42-minishell-ad1f44c7ff032c3b20d493805e544cd70ed4bb89.tar.bz2 42-minishell-ad1f44c7ff032c3b20d493805e544cd70ed4bb89.tar.xz 42-minishell-ad1f44c7ff032c3b20d493805e544cd70ed4bb89.tar.zst 42-minishell-ad1f44c7ff032c3b20d493805e544cd70ed4bb89.zip |
s**** f*****
Diffstat (limited to '')
-rw-r--r-- | src/c_init.c | 32 |
1 files changed, 32 insertions, 0 deletions
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 <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include <term.h> +#include <curses.h> + +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); +} |