Subject: Re: screenshots
To: =?iso-8859-1?Q?M=FCller=2C_Markus?= <Markus.Mueller@itworks-gmbh.de>
From: Martin Weber <Ephaeton@gmx.net>
List: netbsd-help
Date: 12/06/2001 13:04:29
On Thu, Dec 06, 2001 at 10:51:13AM +0100, "Müller, Markus" wrote:
> Hi all,
> 
> this may sound like a *stupid* question, but I'm quite new to unix - here
> goes:
> 
> How do I take a screenshot of my shell?  The bash is my flavor...
> 
> I've seen screen grabs of the installation process in Federico Lupi's
> manuals - how did he do that?
> The prnt-scrn button on my keyboard doesn't seem to work...?
> 
> Btw, I don't use have X on my machine.
> 
> Any help is very much appreciated...

There is the "script" program. It basically works like this: You type
script <filename>, if you don't specify any filename, the script will
output into a file named 'typescript'.
When the script program is executed, it starts your shell, and you
are basically not seeing any difference from a normal session. Everything
you type and is output by the commands/system then will be saved in the
file. When you are done with logging what you are doing to the file,
you leave the shell like you usually would (i.e. "exit"). Everything
you did from start of 'script' till 'exit' will be in the file you specified.

This includes "special characters" though, you might want to test it a
bit to see what I mean (e.g. do script <filenam>, type ls and whoami, then
exit, then less <filename> to see what was output in the file)

script is installed by default afaik, it lies in /usr/bin.

> 
> 
> Thanx in advance
> :) 
> Marc

Martin Weber