mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 15:26:17 +02:00
Fix "Failed tcsetattr(TCSADRAIN)" when nix repl
is not a TTY
Before: ``` $ echo builtins.nixVersion | nix repl Welcome to Nix 2.18.1. Type :? for help. Failed tcsetattr(TCSADRAIN): Inappropriate ioctl for device "2.18.1" Failed tcsetattr(TCSADRAIN): Inappropriate ioctl for device ``` After: ``` $ echo builtins.nixVersion | nix repl Nix 2.21.0pre20240131_dirty Type :? for help. "2.21.0pre20240131_dirty" ```
This commit is contained in:
parent
5b26c66a8c
commit
a694cfb7bd
1 changed files with 0 additions and 1 deletions
|
@ -351,7 +351,6 @@ bool NixRepl::getLine(std::string & input, const std::string & prompt)
|
||||||
};
|
};
|
||||||
|
|
||||||
setupSignals();
|
setupSignals();
|
||||||
Finally resetTerminal([&]() { rl_deprep_terminal(); });
|
|
||||||
char * s = readline(prompt.c_str());
|
char * s = readline(prompt.c_str());
|
||||||
Finally doFree([&]() { free(s); });
|
Finally doFree([&]() { free(s); });
|
||||||
restoreSignals();
|
restoreSignals();
|
||||||
|
|
Loading…
Reference in a new issue