From: "Jimmy" Newsgroups: comp.os.msdos.djgpp Subject: JPTUI - clipping the windows Date: 23 Dec 1997 14:19:50 GMT Organization: Cable OnLine Limited Message-ID: <01bd0fad$a1a8e040$LocalHost@mainframe> NNTP-Posting-Host: 194.168.80.84 Lines: 23 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I'm trying to develop a program using JPTUI with DJGPP. I'm new to dos programming but have much experience with C++ etc. I want my application to launch others and display any mesages directed to sdout (via the program that has been launched) in the main window of my application. This happens automatically when I launch a program - but the text does not clip to my window. I've found a clip window function in JPTUI - but this seems to be restricted to use with JPTUI Text functions. I can see 2 ways forward:- 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 ? 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? Can anybody help me? Thanks Jimmy