mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Add errret param to other calls to setupterm
This commit is contained in:
parent
22d1aaa27d
commit
c80bd104d2
2 changed files with 4 additions and 3 deletions
|
@ -1069,8 +1069,8 @@ static void init(int mangle_descriptors, int out)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
if (setupterm(0, STDOUT_FILENO, 0) == ERR)
|
||||
int errret;
|
||||
if (setupterm(0, STDOUT_FILENO, &errret) == ERR)
|
||||
{
|
||||
debug(0, _(L"Could not set up terminal"));
|
||||
exit(1);
|
||||
|
|
|
@ -336,7 +336,8 @@ int input_init()
|
|||
|
||||
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"));
|
||||
exit_without_destructors(1);
|
||||
|
|
Loading…
Reference in a new issue