Add ANSI control code emulation for the Windows console