Updated TextWriter to wrap text to the terminal window. Not currently
wrapping on spaces, just the end of the line.