mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 00:41:00 +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):
|
except (AttributeError, TypeError, ValueError):
|
||||||
print_exception()
|
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)
|
line = self.prompter.prompt(**prompt_args)
|
||||||
events.on_post_prompt.fire()
|
events.on_post_prompt.fire()
|
||||||
return line
|
return line
|
||||||
|
|
Loading…
Add table
Reference in a new issue