Skip to content

Commit

Permalink
Fix colored output of tools on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
BR- committed Jan 26, 2024
1 parent 321851f commit 56e1c56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/decomp.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
from sys import stderr
from typing import Optional, cast

import colorama
colorama.just_fix_windows_console()

from elftools.elf.elffile import ELFFile
from elftools.elf.sections import SymbolTableSection

Expand Down
3 changes: 3 additions & 0 deletions tools/m2ctx/m2ctx.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
from pathlib import Path
from typing import List

import colorama
colorama.just_fix_windows_console()

here = Path(__file__).parent
root = (here / "../../").resolve()
src = root / "src"
Expand Down

0 comments on commit 56e1c56

Please sign in to comment.