Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!uunet!comix!jeffl From: jeffl@comix.UUCP (Jeff Liebermann) Newsgroups: comp.unix.xenix.sco Subject: Re: Print Screen advice, anyone??? Summary: capture, prtscrn Keywords: print screen Message-ID: <105@comix.UUCP> Date: 19 Mar 91 11:49:25 GMT Article-I.D.: comix.105 References: <568@genco.bungi.com> Distribution: usa Organization: COmmittee to Maintain Independent Xenix Lines: 36 In article <568@genco.bungi.com> dls@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@comix.santa-cruz.ca.us uunet!comix!jeffl ucscc.ucsc.edu!comix!jeffl