add terminal initial prompt for initial connection (#57057)
This commit is contained in:
parent
fe1f1c4541
commit
9e1f184b2d
1 changed files with 6 additions and 0 deletions
|
@ -31,7 +31,13 @@ class TerminalModule(TerminalBase):
|
||||||
re.compile(br'[\r\n]?<.+>(?:\s*)$'),
|
re.compile(br'[\r\n]?<.+>(?:\s*)$'),
|
||||||
re.compile(br'[\r\n]?\[.+\](?:\s*)$'),
|
re.compile(br'[\r\n]?\[.+\](?:\s*)$'),
|
||||||
]
|
]
|
||||||
|
#: terminal initial prompt
|
||||||
|
#: The password needs to be changed. Change now? [Y/N]:
|
||||||
|
terminal_initial_prompt = br'Change\s*now\s*\?\s*\[Y\/N\]\s*:'
|
||||||
|
|
||||||
|
#: terminal initial answer
|
||||||
|
#: do not change password when it is asked to change with initial connection.
|
||||||
|
terminal_initial_answer = b'N'
|
||||||
terminal_stderr_re = [
|
terminal_stderr_re = [
|
||||||
re.compile(br"% ?Error: "),
|
re.compile(br"% ?Error: "),
|
||||||
re.compile(br"^% \w+", re.M),
|
re.compile(br"^% \w+", re.M),
|
||||||
|
|
Loading…
Reference in a new issue