mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-17 13:51:07 -07:00
Reset VT100 attributes in case we get unexpected output
This commit is contained in:
parent
cd6f577d91
commit
2a8914e496
1 changed files with 2 additions and 0 deletions
|
@ -349,6 +349,7 @@ class CallbackModule_dense(CallbackModule_default):
|
|||
|
||||
# Write the next task on screen (behind the prompt is the previous output)
|
||||
sys.stdout.write('%s %d.' % (self.type, self.count[self.type]))
|
||||
sys.stdout.write(v100.reset)
|
||||
sys.stdout.flush()
|
||||
|
||||
def v2_playbook_on_handler_task_start(self, task):
|
||||
|
@ -371,6 +372,7 @@ class CallbackModule_dense(CallbackModule_default):
|
|||
|
||||
# Write the next task on screen (behind the prompt is the previous output)
|
||||
sys.stdout.write('%s %d.' % (self.type, self.count[self.type]))
|
||||
sys.stdout.write(v100.reset)
|
||||
sys.stdout.flush()
|
||||
|
||||
def v2_playbook_on_cleanup_task_start(self, task):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue