🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #11457

Re: window help

#11457
From: Andy Finkel
Date: Thu, 16 Feb 1989 14:33
35 lines
2107 bytes
In article <20428@agate.BERKELEY.EDU> mwm@eris.berkeley.edu (Mike (I'll think of something yet) Meyer) writes:
>In article <23793@pbhya.PacBell.COM> hbit@pbhya.PacBell.COM (Henry Bitter) writes:
><I am trying to get a small C program working that is using both Intuition and
><DOS. My problem is after creating my own screen and window the output that is
><created using printf commands still goes to the workbench screen and window.
>
>This is a pretty common request. As far as I can tell, the answer is
>"you can't get there from here." At least not with what is provided by
>CBM.
>

Actually, I did an example that did this a long time ago.  You open an
Intuition window; the example shows how to start a console handler
using it.  I posted it here, on BIX, and its on Fish disk 38.
Once you make your window a con: window you can printf, or whatever
to it.  The example uses only one cheap trick, and I promise to
rewrite it without the trick after 1.4 :-)

>Now, if someone knows of a way supported by CBM of getting a
>FileHandle pointing to a window after you've opened a file, that would
>very usefull. I'd like to see it if you know how.

You can also find the Intuition window pointer of a window
opened as a CON: window, by sending the con-handler a
DISKINFO packet.  That example was by Carolyn Scheppner, and
appeared on Fish disk 56.
-- 
andy finkel		{uunet|rutgers|amiga}!cbmvax!andy
Commodore-Amiga, Inc.

"Possibly this is a new usage of the word 'compatible' with which
 I was previously unfamiliar"

Any expressed opinions are mine; but feel free to share.
I disclaim all responsibilities, all shapes, all sizes, all colors.
Technical Details
Message-ID: <5987@cbmvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!ulowell!cbmvax!andy
References: <23793@pbhya.PacBell.COM> <20428@agate.BERKELEY.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!ulowell!cbmvax!andy
From: andy@cbmvax.UUCP (Andy Finkel)
Newsgroups: comp.sys.amiga.tech,comp.sys.amiga
Subject: Re: window help
Message-ID: <5987@cbmvax.UUCP>
Date: 16 Feb 89 14:33:18 GMT
References: <23793@pbhya.PacBell.COM> <20428@agate.BERKELEY.EDU>
Reply-To: andy@cbmvax.UUCP (Andy Finkel)
Organization: Commodore Technology, West Chester, PA
Lines: 35