mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
fixes issue with setting the terminal length (pager) in vyos (#18546)
`set terminal length 0` actually sets `VYATTA_PAGER=cat` `set terminal length [some number]` actually sets `stty length [some number]`
This commit is contained in:
parent
f68b49057f
commit
69649358b1
2 changed files with 7 additions and 1 deletions
|
@ -36,7 +36,8 @@ from ansible.module_utils._text import to_native
|
|||
|
||||
ANSI_RE = [
|
||||
re.compile(r'(\x1b\[\?1h\x1b=)'),
|
||||
re.compile(r'\x08.')
|
||||
re.compile(r'\x08'),
|
||||
re.compile(r'\x1b[^m]*m')
|
||||
]
|
||||
|
||||
def to_list(val):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue