http://www.perlmonks.org?node_id=684459

mrslopenk has asked for the wisdom of the Perl Monks concerning the following question:

Sometimes I want a transcript of my terminal sessions. My terminal buffer fills up too quickly, and copy/pasting from the terminal into an emacs buffer is also a hassle.

The unix command 'script' almost does what I want; it outputs a file called 'typescript' by default. But typescript has lots of terminal control characters (like backspaces) in it.

What perl module can process the typescript file so I get a humanly readable ascii file?