diff options
Diffstat (limited to 'src/c_input.c')
-rw-r--r-- | src/c_input.c | 7 |
1 files changed, 4 insertions, 3 deletions
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); |