From 9678900238df60afb95a1038ed9f0acd12310cd3 Mon Sep 17 00:00:00 2001 From: gwojda Date: Mon, 20 Feb 2017 14:35:18 +0100 Subject: [PATCH] =?UTF-8?q?on=20a=20retrouv=C3=A9=20le=20soldat=20TERM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 42sh/src/line-editing/lib_line_editing/toolz2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/42sh/src/line-editing/lib_line_editing/toolz2.c b/42sh/src/line-editing/lib_line_editing/toolz2.c index e22e9fb7..ea8836fe 100644 --- a/42sh/src/line-editing/lib_line_editing/toolz2.c +++ b/42sh/src/line-editing/lib_line_editing/toolz2.c @@ -6,7 +6,7 @@ /* By: gwojda +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/01/07 11:00:28 by gwojda #+# #+# */ -/* Updated: 2017/02/16 16:05:40 by gwojda ### ########.fr */ +/* Updated: 2017/02/20 14:32:08 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */ @@ -25,7 +25,7 @@ void ft_puttermcaps(char *str) char *res; char *env; - env = ft_getenv(data_singleton()->env, "TERM"); + env = getenv("TERM"); if ((res = tgetstr(str, &env)) == NULL) return ; tputs(res, 0, ft_put);