Print Screen advice, anyone???
Jeff Liebermann
jeffl at comix.UUCP
Tue Mar 19 21:49:25 AEST 1991
In article <568 at genco.bungi.com> dls at genco.bungi.com (Dave L. Smith) writes:
>I have asked this question at least twice now, with no response.
>If anyone knows the answer, I would be forever indebted to them, etc.
>What I would like to have is something like the DOS print screen,
>for the Xenix console. Sounds pretty simple, but no one seems to know.
>
This may be of general interest.....
:
# capture
# execute from cu as ~!capture
oldstty=`stty -g` # save stty settings.
stty -echo ixon ixoff -ixany # turn off echo.
/bin/echo '\033[2i' # ansi goto top of screen.
head -24 > capture.$$ # belch 24 lines to file.
stty $oldstty # restore stty settings.
:
# prtscrn
# execute from cu as ~!prtscr
oldstty=`stty -g` # save stty settings.
stty -echo ixon ixoff -ixany # turn off echo.
/bin/echo '\033[2i' # ansi goto top of screen.
head -24 | lp # belch 24 lines to spooler.
stty $oldstty # restore stty settings.
One problem is that it saves every character and space on the screen
resulting in exactly 1944 (81x24) characters. These should be trimmed
with sed or double spaced printing may result from automatic LF for
full 80 char lines.
--
# Jeff Liebermann Box 272 1540 Jackson Ave Ben Lomond CA 95005
# (408)336-2558 voice (408)429-0483 digital pager wb6ssy CIS:73557,2074
# PC REPAIR & RF DESIGN. Committee Against Double Spacing And Wide Margins.
# jeffl at comix.santa-cruz.ca.us uunet!comix!jeffl ucscc.ucsc.edu!comix!jeffl
More information about the Comp.unix.xenix.sco
mailing list