Date: Tue, 23 Dec 1997 19:15:47 +0200 (IST) From: Eli Zaretskii To: Jimmy cc: djgpp AT delorie DOT com Subject: Re: JPTUI - clipping the windows In-Reply-To: <01bd0fad$a1a8e040$LocalHost@mainframe> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On 23 Dec 1997, Jimmy wrote: > 1. Redirect the stdout to a file (or something) and use JPTUI Text > functions to write the output to a window --- How will I implement this so > that I can read text from the file as it is being wrote to ? Use `popen' and `pclose' library functions. You will only get the text written by the child program after it exits (this is DOS, remember?). > 2. Get hold of a pointer to the screen that JPTUI has its window attached > to and use DOS clipping functions to gain more control --- Is it possible > to get hold of the screen handle? Does Dos provide clipping functions? AFAIK, this cannot be done. DOS by default calls a BIOS function to print to the screen, and that function cannot be told to clip its output.