blob: 5cf46f32ed6aafb0a12ac21e944630b3574eb77f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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);
}
|