Record terminal sessions with ttyrec