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

Re: screen-shots in terminal-mode ?



"J.A. Bezemer" wrote:
> 
> On Wed, 28 Jun 2000, S. Champ wrote:
> 
> > hello.
> >
> > is it possible to get a screenshot of each of the steps in the debian
> > install-process? if so, how?
> 
> Have the to-be-captured screen on tty1, then on tty2 give command
> 
>  cat /dev/vcsa1 > somefile
> 
> And then some (yet unwritten?) program to convert the attributes to colors. Or
> use /dev/vcs1 for non-attributed version. To get a graphic dump, use an xterm
> with the `vga' font (in the dosemu package) with black backgr, lightgray
> foreground, 80x25, then
> 
>  cat somefile; sleep 60
> 
> and an xv/gimp/... screengrab in that time.
> 
> Regards,
>   Anne Bezemer

there's also the 'script' command which saves all your console/tty
output to a file and also displays it on screen while it happens. 
kinda like "tee" but simpler (and completely independent of Xwindows).

then you can go back and annotate the results interspersed with 
lots of <pre></pre> tags, and plop it up on a web page.

when you 'cat' the stored session back to your monitor, you can
see every keystroke fly by, every prompt, every listing, every
escape sequence...

if you have any cursor-positioning commands or color-change
escape sequences that get sent to your screen, 'script' also
records that, which is the only caveat i can see. (thus in
'dpkg-reconfigure debconf' you'd probably wanna set 'text'
as your interactivity option, instead of 'dialog' or 'web'.)

see 'man script' after 'apt-get install bsdutils'.

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Their is five errers in this sentance.



Reply to: