mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
pexpect: Pass on keyword arguments to spawn()
This is useful for all the additional pexpect features.
This commit is contained in:
parent
056153eddd
commit
ccc5e7cb28
1 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ class SpawnedProc(object):
|
|||
function to ensure that each printed prompt is distinct.
|
||||
"""
|
||||
|
||||
def __init__(self, name="fish", timeout=TIMEOUT_SECS, env=os.environ.copy()):
|
||||
def __init__(self, name="fish", timeout=TIMEOUT_SECS, env=os.environ.copy(), **kwargs):
|
||||
"""Construct from a name, timeout, and environment.
|
||||
|
||||
Args:
|
||||
|
@ -143,7 +143,7 @@ class SpawnedProc(object):
|
|||
self.colorize = sys.stdout.isatty()
|
||||
self.messages = []
|
||||
self.start_time = None
|
||||
self.spawn = pexpect.spawn(exe_path, env=env, encoding="utf-8", timeout=timeout)
|
||||
self.spawn = pexpect.spawn(exe_path, env=env, encoding="utf-8", timeout=timeout, **kwargs)
|
||||
self.spawn.delaybeforesend = None
|
||||
self.prompt_counter = 0
|
||||
|
||||
|
|
Loading…
Reference in a new issue