scripts: tracing: Initialise Colorama during module load
This commit adds a call to the Colorama initialisation function during the module execution so that ANSI color sequences are properly converted to the relevant Win32 API calls on the Windows. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
parent
847ff98bb3
commit
e332ddb5b4
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,7 @@ Generate trace using samples/subsys/tracing for example:
|
|||
|
||||
import sys
|
||||
import datetime
|
||||
import colorama
|
||||
from colorama import Fore
|
||||
import argparse
|
||||
try:
|
||||
|
@ -38,6 +39,8 @@ def parse_args():
|
|||
return args
|
||||
|
||||
def main():
|
||||
colorama.init()
|
||||
|
||||
args = parse_args()
|
||||
|
||||
msg_it = bt2.TraceCollectionMessageIterator(args.trace)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue