From ab2474210ed57a5df03c71058d2fe4f06d6934a0 Mon Sep 17 00:00:00 2001 From: Aaron Cutright Date: Mon, 15 Mar 2021 20:48:01 -0400 Subject: [PATCH] Fix terminal colors not rendering under Windows --- terminal.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/terminal.py b/terminal.py index 0d114f028fa..1afb2783090 100644 --- a/terminal.py +++ b/terminal.py @@ -2,6 +2,7 @@ import argparse +import sys, os from datetime import datetime, timedelta import pandas as pd from alpha_vantage.timeseries import TimeSeries @@ -31,6 +32,9 @@ def main(): Gamestonk Terminal is an awesome stock market terminal that has been developed for fun, while I saw my GME shares tanking. But hey, I like the stock. """ + + if sys.platform == 'win32': + os.system('') # enable VT100 Escape Sequence for WINDOWS 10 Ver. 1607 s_ticker = "" s_start = ""