mirror of
https://github.com/fish-shell/fish-shell
synced 2024-09-22 07:21:55 +00:00
parent
5b3397359f
commit
8d1667e9e8
1 changed files with 6 additions and 1 deletions
|
@ -346,13 +346,18 @@ int input_init()
|
||||||
|
|
||||||
input_common_init(&interrupt_handler);
|
input_common_init(&interrupt_handler);
|
||||||
|
|
||||||
|
const env_var_t term = env_get_string(L"TERM");
|
||||||
int errret;
|
int errret;
|
||||||
if (setupterm(0, STDOUT_FILENO, &errret) == ERR)
|
if (setupterm(0, STDOUT_FILENO, &errret) == ERR)
|
||||||
{
|
{
|
||||||
debug(0, _(L"Could not set up terminal"));
|
debug(0, _(L"Could not set up terminal"));
|
||||||
|
if (errret == 0)
|
||||||
|
{
|
||||||
|
debug(0, _(L"Check that your terminal type, '%ls', is supported on this system"),
|
||||||
|
term.c_str());
|
||||||
|
}
|
||||||
exit_without_destructors(1);
|
exit_without_destructors(1);
|
||||||
}
|
}
|
||||||
const env_var_t term = env_get_string(L"TERM");
|
|
||||||
assert(! term.missing());
|
assert(! term.missing());
|
||||||
output_set_term(term);
|
output_set_term(term);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue