if you don't detect the terminal type, you'll get a bunch of terminal crap to a file. How about making it optional and setting it at startup