summaryrefslogtreecommitdiffstats
path: root/src/c_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_input.c')
-rw-r--r--src/c_input.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/c_input.c b/src/c_input.c
index 141538d..7848f93 100644
--- a/src/c_input.c
+++ b/src/c_input.c
@@ -23,17 +23,18 @@
#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];
signal(SIGINT, c_signal_int);
signal(SIGQUIT, c_signal_ign);
if (tcaps)
{
- term = getenv("TERM");
+ u_get_var_value(term, "$TERM", 4096, msh);
if (!tgetent(NULL, term))
return (-1);
c_set_term_raw(1);