Fix terminal colors not rendering under Windows

This commit is contained in:
Aaron Cutright
2021-03-15 20:48:01 -04:00
parent fd5c174d84
commit ab2474210e

View File

@@ -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 = ""