Search code examples
haskellcmdpackageghcihackage

Coloring console output in windows


I was trying to find if it is possible to colour console output in windows system. I found that Console - Ansi but i cant find any information about coloring output in windows prompt.

I woudl appreciate information about my problem.


Solution

  • It's been a while, but I think the correct usage is:

    setRGB [SetColor Foreground Yellow, SetColor Background Red]
    

    to set yellow writing on a red background. Also setTitle followed by a String sets the console window title.