Skip to content

Commit

Permalink
Fix ouput display in child process (JaiMaaSheeravali#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktg-123 committed May 12, 2021
1 parent f3bf449 commit c49bb5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/loop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,9 @@ void roosh_loop(std::istream &in)
push_command(line);

// execute all the commands specified in the line
tcsetattr(0, TCSANOW, &old); // restore original terminal settings
bool status = roosh_launch(line);

tcsetattr(0, TCSANOW, &current); // set the new settings
history.insert(history.begin(), keyboard.buffer);

historyCount++;
Expand Down

0 comments on commit c49bb5b

Please sign in to comment.