X Terminal Session Logging
I realize this is probably something of a FAQ in some circles, but all the keywords I can think of are way too broad, so Google has produced few answers...
I want to be able to keep logs of terminal sessions, mostly so that when I get something working I don't forget what I did by the next time I have to do it again, and partly so I can compare procedures on different machines & distros. I know that 'script' will keep a typescript, but aside from all the ugliness (and problems with searching) that the literal keystroke logging causes, I'm even more concerned about capturing information -- such as passwords -- that I *don't* want to archive.
Can anyone recommend an X terminal -- or a trick for X terminals in general -- that will log all output as it's shown in the terminal application? That is, commands that were tab-completed still would show as the resulting full command line, screen-grabbing programs such as vi, man, and less would only show what the X terminal would normally show after they exit (in many cases, the output of those commands would be lost, which is fine with me), and passwords would be left blank as they appear during the session itself? I hear that xterm is capable of doing this, if it's compiled from scratch with the option enabled, but even then I'm not sure it would do what I want (without literal keystroke logging), and I'd prefer a modern tabbed, menued X terminal anyway if possible.
I could always just increase my scrollback buffers and copy/paste, which would give exactly the results I want, but many compile jobs and the like scroll so far so fast that I would still miss a lot of information, while consuming far too much memory (especially once I've got a dozen or two open at a time), and spending a lot of time stopping to copy & paste every few minutes. Even if any X terminal apps would let one pipe the scrollback buffer to a file, that would be plenty good for me.
Any recommendations? Anybody tried to do this before? Thanks a million for any thoughts!