Skip to content

Commit

Permalink
soc: npcx: scripts: Initialise Colorama during module load
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
stephanosio authored and mbolivar-nordic committed May 24, 2022
1 parent e332ddb commit b2c8f26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions soc/arm/nuvoton_npcx/common/ecst/ecst_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import sys
import argparse
import colorama
from colorama import Fore

INVALID_INPUT = -1
Expand Down Expand Up @@ -244,3 +245,5 @@ def exit_with_failure(message):
print(Fore.RED + message)

sys.exit(EXIT_FAILURE_STATUS)

colorama.init()

0 comments on commit b2c8f26

Please sign in to comment.