barton@holston.UUCP (barton) (08/04/89)
Forgive me if this has been asked before, but has anyone successfully gotten a printscreen-like function to work on a sco xenix console? I have seen the screen codes to send the screen contents to the application (ESC[2i), but I can't seem to get it to work. Any friendly suggestions appreciated. -- Barton A. Fisk | UUCP: {attctc,texbell,vector}!warble!holston!barton PO Box 1781 | (PSEUDO) DOMAIN: barton@holston.UUCP Lake Charles, La. 70602 | ---------------------------------------- 318-439-5984 | +++++ "Hal, open the pod bay doors" --- Dave
bob@consult.UUCP (Bob Willey) (08/07/89)
In article <437@holston.UUCP> barton@holston.UUCP (barton) writes: >anyone successfully gotten a printscreen-like >function to work on a sco xenix console? This was found on the SCO SOS BBS. How do I get a console screen dump? Give the following command, all on one line: stty -echo ixon ixoff -ixany; /bin/echo '\033[2i' ; cat > screen.out ; stty sane ... Then wait approx. 10 seconds and type <ctrl>-d. The output is a file in the current directory called 'screen.out'. If desired, this command can be put into a shell script, as shown below. ... oldstty='stty -g' stty -echo ixon ixoff -ixany; /bin/echo '\033[2i' ; head -24 >> screen.out ; stty $oldstty ... Hope this helps. -- .. Computer Consulting Service .. Bob Willey .. .. P.O. Drawer 1690 .. uunet!consult!bob .. .. Easton, Maryland 21601 .. (301) 820-4670 .. ...............................................................