From 4c1865297f02111787b494cbcc599f268b8af240 Mon Sep 17 00:00:00 2001 From: joe Date: Mon, 7 Dec 2020 14:05:28 +0100 Subject: changes --- src/c_input.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/c_input.c') diff --git a/src/c_input.c b/src/c_input.c index 9023f37..874d55a 100644 --- a/src/c_input.c +++ b/src/c_input.c @@ -22,15 +22,16 @@ #include "c_utils.h" #include "m_prompt.h" #include "m_loop.h" +#include "u_vars.h" short - c_init_line(char psx, t_caps *tcaps) + c_init_line(char psx, t_caps *tcaps, t_msh *msh) { - char *term; + char term[4096]; if (tcaps) { - term = getenv("TERM"); + u_get_var_value(term, "$TERM", 4096, msh); if (!tgetent(NULL, term)) return (-1); c_set_term_raw(1); -- cgit v1.2.3