Skip to content

Commit b2c8f26

Browse files
stephanosiombolivar-nordic
authored andcommitted
soc: npcx: scripts: 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>
1 parent e332ddb commit b2c8f26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

soc/arm/nuvoton_npcx/common/ecst/ecst_args.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import sys
1010
import argparse
11+
import colorama
1112
from colorama import Fore
1213

1314
INVALID_INPUT = -1
@@ -244,3 +245,5 @@ def exit_with_failure(message):
244245
print(Fore.RED + message)
245246

246247
sys.exit(EXIT_FAILURE_STATUS)
248+
249+
colorama.init()

0 commit comments

Comments
 (0)