Printing data displayed in terminal mode
cl at isbd.net
cl at isbd.net
Wed Oct 4 15:33:57 UTC 2006
On Wed, Oct 04, 2006 at 11:20:38AM -0400, alex wrote:
> There are times when I'd like to make printed copies of the useful data
> that is displayed on terminal screens, such as that
> produced by 'apt-get --help' but there doesn't seem to be any kind of
> print command available when such data is displayed. Is there a way to
> get this kind of information into an editor (geditor ?) so it can be
> printed?
>
If your printer is set up the way mine is then you can simply pipe the
output into 'lpr'.
E.g.:-
apt-get --help | lpr
Slightly more elegant (if you have it installed) is enscript, works
the same though:-
apt-get --help | enscript
If you want to capture something already output to the terminal then
select it with the mouse and just do something like:-
cat | lpr
and then paste the text.
--
Chris Green (chris at halon.org.uk)
More information about the ubuntu-users
mailing list