Shell: load old termios for process execution
This commit is contained in:
parent
b0e9ab0519
commit
3fc2c3529a
|
@ -177,7 +177,9 @@ int main(int argc, char** argv)
|
||||||
fputc('\n', stdout);
|
fputc('\n', stdout);
|
||||||
if (!buffers[index].empty())
|
if (!buffers[index].empty())
|
||||||
{
|
{
|
||||||
|
tcsetattr(0, TCSANOW, &old_termios);
|
||||||
execute_command(buffers[index]);
|
execute_command(buffers[index]);
|
||||||
|
tcsetattr(0, TCSANOW, &new_termios);
|
||||||
MUST(history.push_back(buffers[index]));
|
MUST(history.push_back(buffers[index]));
|
||||||
buffers = history;
|
buffers = history;
|
||||||
MUST(buffers.emplace_back(""sv));
|
MUST(buffers.emplace_back(""sv));
|
||||||
|
|
Loading…
Reference in New Issue