delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/23/12:16:05

Date: Tue, 23 Dec 1997 19:15:47 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jimmy <hi AT kl DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: JPTUI - clipping the windows
In-Reply-To: <01bd0fad$a1a8e040$LocalHost@mainframe>
Message-ID: <Pine.SUN.3.91.971223191327.15119C-100000@is>
MIME-Version: 1.0

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019