diff options
Diffstat (limited to '')
-rw-r--r-- | src/c_input.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/c_input.c b/src/c_input.c index d680552..cab18b8 100644 --- a/src/c_input.c +++ b/src/c_input.c @@ -25,8 +25,13 @@ int16_t c_init_line(uint8_t psx, t_caps *tcaps) { + char *term; + if (tcaps) { + term = getenv("TERM"); + if (!tgetent(NULL, term)) + return (-1); c_set_term_raw(1); signal(SIGINT, SIG_IGN); tcaps->cpos = 0; |