To: djgpp AT sun DOT soe DOT clarkson DOT edu From: A DOT APPLEYARD AT fs1 DOT mt DOT umist DOT ac DOT uk Date: 26 Aug 93 09:52:53 GMT Subject: Copying screen to file "Mr. Richard Seabrook" wrote on Wed 25 Aug 1993 17:22:09 -0500 (EDT) (Subject: no subject (file transmission)):- > Here are the error messages I got (painfully retyped by me since I couldn't redirect !@*%#***@@#! stderr under DOS) ... Here is a Gnu C++ program that I wrote to copy the text screen onto a file:- /* copies text screen onto file T$SCREEN . compile with -lpc */ #include #include main(){int cols=ScreenCols(),rows=ScreenRows(); char s[cols+1]; unsigned short*screen=(unsigned short*)ScreenPrimary; int i,j,k; FILE*F=fopen("t$screen","w"); for(i=0;i=0;j--) if(s[j]!=' ') break; s[k=j+1]=0; for(j=0;j