added function to properly configure text colour on windows. Not yet in use