🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: window help

#11470
From: Mike (I'll think of something ye...
Date: Sat, 25 Feb 1989 00:52
38 lines
2183 bytes
<><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.
<
<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.

I missed it - but I'm glad to know that it exists. I'll look at it
when I get home.

<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 :-)

I assume the cheap trick is how you get from the console handler to a
con: device?

<>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.

I phrased that badly - I want to go the other way. Given an intuition
window with an attached console handler, I want a con: file name I can
use. I know about Carolyns code; I used it in my emulation of the Unix
plot() library so that unix code would port directly.

	<mike
--
That time we slept together				Mike Meyer
That's as far as it went				mwm@berkeley.edu
Yet though we're not quite lovers			ucbvax!mwm
You're more than a friend				mwm@ucbjade.BITNET
Technical Details
Message-ID: <20875@agate.BERKELEY.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!agate!eris.berkeley.edu!mwm
References: <23793@pbhya.PacBell.COM> <20428@agate.BERKELEY.EDU> <5987@cbmvax.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!agate!eris.berkeley.edu!mwm
From: mwm@eris.berkeley.edu (Mike (I'll think of something yet) Meyer)
Newsgroups: comp.sys.amiga.tech,comp.sys.amiga
Subject: Re: window help
Message-ID: <20875@agate.BERKELEY.EDU>
Date: 25 Feb 89 00:52:53 GMT
References: <23793@pbhya.PacBell.COM> <20428@agate.BERKELEY.EDU> <5987@cbmvax.UUCP>
Sender: usenet@agate.BERKELEY.EDU
Organization: Missionaria Phonibalonica
Lines: 38