mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 12:41:08 +08:00
Add errret param to other calls to setupterm
This commit is contained in:
parent
22d1aaa27d
commit
c80bd104d2
|
@ -1069,8 +1069,8 @@ static void init(int mangle_descriptors, int out)
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int errret;
|
||||||
if (setupterm(0, STDOUT_FILENO, 0) == ERR)
|
if (setupterm(0, STDOUT_FILENO, &errret) == ERR)
|
||||||
{
|
{
|
||||||
debug(0, _(L"Could not set up terminal"));
|
debug(0, _(L"Could not set up terminal"));
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
|
@ -336,7 +336,8 @@ int input_init()
|
||||||
|
|
||||||
input_common_init(&interrupt_handler);
|
input_common_init(&interrupt_handler);
|
||||||
|
|
||||||
if (setupterm(0, STDOUT_FILENO, 0) == ERR)
|
int errret;
|
||||||
|
if (setupterm(0, STDOUT_FILENO, &errret) == ERR)
|
||||||
{
|
{
|
||||||
debug(0, _(L"Could not set up terminal"));
|
debug(0, _(L"Could not set up terminal"));
|
||||||
exit_without_destructors(1);
|
exit_without_destructors(1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user