mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
adding tty sanity back
This commit is contained in:
parent
5eb7be81ca
commit
597e95c750
1 changed files with 7 additions and 1 deletions
|
@ -1939,8 +1939,14 @@ class CommandPipeline:
|
|||
pgid = os.getpgid(0)
|
||||
if self._term_pgid is None or pgid == self._term_pgid:
|
||||
return
|
||||
if give_terminal_to(pgid): # if gave term succeed
|
||||
if give_terminal_to(pgid):
|
||||
self._term_pgid = pgid
|
||||
if hasattr(builtins, '__xonsh_shell__'):
|
||||
# restoring sanity could probably be called whenever we return
|
||||
# control to the shell. But it only seems to matter after a
|
||||
# ^Z event. This *has* to be called after we give the terminal
|
||||
# back to the shell.
|
||||
builtins.__xonsh_shell__.shell.restore_tty_sanity()
|
||||
|
||||
def _end(self, tee_output):
|
||||
"""Waits for the command to complete and then runs any closing and
|
||||
|
|
Loading…
Add table
Reference in a new issue