🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: window/event/conman questions

#13113
From: Eduardo Horvath
Date: Fri, 08 Dec 1989 15:02
47 lines
2848 bytes
In article <4688@sugar.hackercorp.com> peter@sugar.hackercorp.com (Peter da Silva) writes:
>In article <29800002@inmet> rich@inmet.inmet.com writes:
>> I am writing a programming environment (a smalltalk that is derived from 
>> Tim Budd's Little Smalltalk, but faster) for Ami.

>Cool.

[gulp...]

>> Finally, I am using ConMan's feature of opening a window as a file handle
>> by calling Open() with file name "con:wXXXX" where XXXX is the address of
>> the opened window.
>
>Please don't do this. There are ways of attaching a console device to a window,
>and I'm sure that someone will come up with one for you. If you depend on
>ConMan, you'll be unable to run your program on any system that doesn't have
>it. For something like Smalltalk, that'd be too bad.

   The Open() function is an AmigaDos function, as opposed to an Intuition
function.  It tries to open a file.  When it asks the console device for the
file, the console device opens the window and attatches the current console
handler to it, whether the handler is the old con:, the arp con:, or conman's
con:.  The program will run either with or without conman, but the interface
will change.  Generic, unadulterated console handlers are such a pain!

   There is also a technique for opening an Intuition window, and attatching
a console device to it (I think I saw it in the Intuition manual v1.1).  
This will also give you the resident console handler.  It is debatable whether
you want to use a console handler at all.  Remember that relying on it will
cause unpredictable changes in the environment you are creating.  You might 
want to just write your own, if you want to support cut/paste, the clipboard,
or "full screen editing", because you will be forced to deal with the window
as a file, and will not be able to cursor up to edit parts of a program.  
( I am make an assumption here that may not be accurate.  If the con: is just
for program I/O please ignore this part.)

>-- 
>Peter "Have you hugged your wolf today" da Silva <peter@sugar.hackercorp.com>
>`-_-'
> 'U` "Really, a video game is nothing more than a Skinner box."
>       -- Peter Merel <pete@basser.oz>

---
Eduardo Horvath | Director, Campaign to Free Doctor Science
	Send your contributions to:	33014-18@sjsumcs.SJSU.EDU
	"Why don't you stop your whining, and get back to work!"
				- Doctor Science
Technical Details
Message-ID: <1989Dec8.150215.24136@sjsumcs.s>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucsd!ucsdhub!hp-sdd!hplabs!hp-ses!hpcuhb!hpsmtc1!hpda!motcsd!apple!usc!jarthur!bridge2!mips!excelan!sjsumcs!33014-18
References: <29800002@inmet>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucsd!ucsdhub!hp-sdd!hplabs!hp-ses!hpcuhb!hpsmtc1!hpda!motcsd!apple!usc!jarthur!bridge2!mips!excelan!sjsumcs!33014-18
From: 33014-18@sjsumcs.sjsu.edu (Eduardo Horvath)
Newsgroups: comp.sys.amiga.tech
Subject: Re: window/event/conman questions
Message-ID: <1989Dec8.150215.24136@sjsumcs.s>
Date: 8 Dec 89 15:02:00 GMT
References: <29800002@inmet>
Lines: 47