oublies d'un fichier
This commit is contained in:
parent
c654e524f4
commit
b97f268578
1 changed files with 31 additions and 0 deletions
31
42sh/src/line-editing/resize.c
Normal file
31
42sh/src/line-editing/resize.c
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* resize.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: gwojda <gwojda@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2017/03/14 10:56:08 by gwojda #+# #+# */
|
||||
/* Updated: 2017/03/14 12:00:29 by gwojda ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "minishell.h"
|
||||
int c_dispatcher(t_data *s);
|
||||
|
||||
void sigwinch_resize(int sig)
|
||||
{
|
||||
size_t pos_tmp;
|
||||
|
||||
pos_tmp = 0;
|
||||
(void)sig;
|
||||
if (data_singleton()->comp)
|
||||
{
|
||||
c_term_resize(data_singleton()->comp);
|
||||
ft_puttermcaps("cl");
|
||||
data_singleton()->line.is_prompt ? ft_prompt() : ft_putstr("> ");
|
||||
ft_putall_current_str(STR, &pos_tmp);
|
||||
ft_putnc('\b', pos_tmp - POS);
|
||||
c_dispatcher(data_singleton());
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue