[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: typescript of terminal session (was: Was: Ric Moore)



Alberto Luaces wrote:
> Richard Owlett <rowlett@cloud85.net> writes:
> 
> > Gene Heskett wrote:
> >> On Sunday 18 January 2015 18:21:02 Mart van de Wege did opine
> >> [SNIP]
> >>>
> >>> apt-get remove network-manager seems to work just fine for me.
> >>>
> >>> Mart
> >>
> >> I have attempted that, several times in the past 5 or 6 years.  The list
> >> of stuff it will also remove is usually several printed pages, IF you
> >> could actually get a printout. Unfortunately, you can't even copy/paste
> >> for a record from that screen by any method but a screen snapshot series.
> >> [snip]
> >
> > I had a similar problem some time back.
> > Someone pointed me to a utility that saved everything sent to a
> > console window.
> > It was not "redirection" nor a "pipe" as the console retained all its
> > functionality.
> >
> > The procedure was:
> >   start the utility in the console specifying a destination file
> >   run arbitrary number of commands
> >      [the utility recording input keystrokes and resulting output]
> >   terminate the utility
> >   close console if desired
> >
> > I understand the typical use of the utility is in a classroom
> > situation where instructor needs to see exactly what the student
> > did. I know I saved the message but I can't come up with keywords to
> > retrieve it.
> >
> 
> "script" in bsdutils package?

I use Gnu screen to multiplex terminal sessions. 
There is a scroll back function, invoked by default
keybinding Ctrl-a [ , then pressing SPACE to mark 
the beginning and the end of the region to copy to 
the paste buffer. 

Then paste with Ctrl-a ]  either into another application,
or after "cat > somefile.txt" or "cat | xsel -b" (copy to
X11 paste buffer for paste by Ctrl-v). Terminate the input
by Ctrl-d on a new line.

cheers,

-- 
Joel Roth
  


Reply to: