Mail Archives: djgpp/1997/12/23/12:16:05
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 -