aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-04 09:13:55 +0100
committereldritch horrors <pennae@lix.systems>2024-03-04 09:25:17 +0100
commit4551dd0f2c6f3050c2434b413da173e7826cf3cf (patch)
treeacb906f5f81306016cea4107e031b8c7214a37cc /src
parent41b7876b32353f7649bccc5c7a11c02bf2e4c67a (diff)
Merge pull request #10010 from 9999years/fix-9941
Fix "Failed tcsetattr(TCSADRAIN)" when `nix repl` is not a TTY (cherry picked from commit 864fc85fc88ff092725ba99907611b2b8d2205fb) Change-Id: I8198674b935fabd741a349cc74544e61c53ea7b3
Diffstat (limited to 'src')
-rw-r--r--src/libcmd/repl.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc
index bcd887d76..6181e3eb2 100644
--- a/src/libcmd/repl.cc
+++ b/src/libcmd/repl.cc
@@ -340,7 +340,6 @@ bool NixRepl::getLine(std::string & input, const std::string & prompt)
};
setupSignals();
- Finally resetTerminal([&]() { rl_deprep_terminal(); });
char * s = readline(prompt.c_str());
Finally doFree([&]() { free(s); });
restoreSignals();