Script
From CSWiki
[edit] Running a script to capture screen text
To start a script file, open a terminal and type: $ script filename.scr
Then type the program you wish to capture the screen text from (ie. a.out, p1.exe, etc.)
To finish the script, type: $ exit
You will now have a filename.scr file showing all screen text.
