Dan_Jacobson@ATT.COM (05/16/91)
>>>>> On 2 May 91 16:59:03 GMT, markw@hpdmd48.boi.hp.com (Mark Wolfe) said:
Mark> One of the people I work with asked me if I knew of a
Mark> utility that would copy text from the screen (terminal memory)
Mark> and either print it or save it in a file.
Well if you happen to be living under Oliver Laumann's "screen" (ftp
prep.ai.mit.edu:pub/gnu/screen-2.1.tar.Z (works on Berkeley style
UNIXes)) then two keystrokes (^A ^H) will do what you wish. Otherwise
look at the script(1) and tee(1) man pages for less spontaneous
solutions.
markw@hpdmd48.boi.hp.com (Mark Wolfe) (05/24/91)
Well, I have my answer, and I was very surprised at the responses I got. Most of the "wizards" said this was impossible to do in most cases and difficult at best. I guess terminals with their own memory are rare outside HP (hah!). It turns out all you need to do is issue 'lp' so it's reading from stdin and use the cursor control keys to send the cursor to the point on the screen you want to copy and hit enter until you've printed what you need, then control D to stop. All this is obviously very standard stuff. The whole thing is so simple I don't know why I didn't think of it before. Mark