diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-09-18 14:51:08 +0200 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-09-18 14:51:08 +0200 |
commit | 3ab54c00fd08f02f246488629442866c8eb604b1 (patch) | |
tree | ab4bca754ad2220ef2f704d6dc9f721606dc9b33 /src/c_utils.c | |
parent | norm, new file, ctrl + c (diff) | |
download | 42-minishell-3ab54c00fd08f02f246488629442866c8eb604b1.tar.gz 42-minishell-3ab54c00fd08f02f246488629442866c8eb604b1.tar.bz2 42-minishell-3ab54c00fd08f02f246488629442866c8eb604b1.tar.xz 42-minishell-3ab54c00fd08f02f246488629442866c8eb604b1.tar.zst 42-minishell-3ab54c00fd08f02f246488629442866c8eb604b1.zip |
full bugged, mais full features
Diffstat (limited to '')
-rw-r--r-- | src/c_utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/c_utils.c b/src/c_utils.c index 1890192..f96d0b3 100644 --- a/src/c_utils.c +++ b/src/c_utils.c @@ -15,7 +15,6 @@ #include <stdlib.h> #include <term.h> #include <unistd.h> -#include <sys/ioctl.h> #include "c_init.h" #include "m_prompt.h" @@ -25,10 +24,11 @@ /* ** TODO: ** MULTILIGHNE +** FLECHES UP DOWN ** quotes -** C-c +** unknown chars +** C-c globul pid ** NORME -** leaks on line ??? GONE ? */ uint16_t @@ -138,7 +138,7 @@ int16_t tputs(tgetstr("cr", NULL), 1, ft_putchar); if (len >= (tcaps->ws.ws_col - ft_strlen(msh->ps[0]))) { - if (len == (tcaps->ws.ws_col - ft_strlen(msh->ps[0]))) + if (len % (tcaps->ws.ws_col - ft_strlen(msh->ps[0])) == 0) { tputs(tgetstr("sf", NULL), 1, ft_putchar); return (1); |