htty
htty copied to clipboard
xterm colors do not render on Windows or MinGWin32
The escape sequences show as text rather than by affecting colors as expected.
If you have Windows 2000, XP or later get ansicon:
- http://adoxa.110mb.com/
Actually I reckon A+ for ansicon -- Use
- ansicon.exe -I
Installs it as a filter on your CMD.exe sessions. Works a treat with HTTY.
:-)
This is cool. I had not heard of ANSICON before. I'll try it out on Windows 7 and add it to readme instructions (possibly even an htty runtime message on Windows).
found it on Stackoverflow ;-)
I use Ansicon (love it!) on Windows XP 64-bit but the HTTY escape codes still don't work for me:
// prompt is not colored; attempt colored prompt with escape codes
C:> set PROMPT=$E[0;36m$P$E[36;1m$G$E[0m$S ←[0;36mC:\←[36;1m>←[0m
// SUCCESS: ugly prompt (as expected); launch ansicon to enable escape codes
←[0;36mC:\←[36;1m>←[0m ansicon
Microsoft Windows Version 5.2.3790 Copyright 1985-2003 Microsoft Corp.
C:>
// SUCCESS: prompt appears blue; now run htty
C:> htty arareqc *** Welcome to ←[1m←[41m←[1;33m htty ←[0m, the ←[1mHTTP TTY←[0m. Heck To The Yeah!
// FAIL: escapes not working as expected, quit htty
←[1mhttp://arareqc/←[0m> quit *** Happy Trails To You!
// SUCCESS, prompt is blue, exit Ansicon
C:>exit
// SUCCESS: ugly prompt (as expected)
←[0;36mC:\←[36;1m>←[0m