mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
add args
This commit is contained in:
parent
a241538599
commit
19fdd2dffe
1 changed files with 5 additions and 0 deletions
|
@ -155,6 +155,11 @@ class PromptToolkit2Shell(BaseShell):
|
|||
except (AttributeError, TypeError, ValueError):
|
||||
print_exception()
|
||||
|
||||
prompt_refresh_interval = builtins.__xonsh__.env.get(
|
||||
"PROMPT_REFRESH_INTERVAL")
|
||||
if prompt_refresh_interval.replace('.', '').isdigit():
|
||||
prompt_args["refresh_interval"] = float(prompt_refresh_interval)
|
||||
|
||||
line = self.prompter.prompt(**prompt_args)
|
||||
events.on_post_prompt.fire()
|
||||
return line
|
||||
|
|
Loading…
Add table
Reference in a new issue