🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Adding Arexx Port

#2949
From: Ed Hanway
Date: Thu, 15 Mar 1990 20:55
22 lines
1699 bytes
In article <611@titan.tsd.arlut.utexas.edu>,
lofaso@titan.tsd.arlut.utexas.edu (Bernie Lofaso) writes:
>I've recently been comtemplating adding an Arexx port to an existing
>application.  The application has an interactive user interface which mearly
>accepts commands typed at the console and performs the indicated action,
>potentially printing output.  I would like Arexx to be able to send commands
>just as the user can type them in.  I would like to be able to receive
>commands from both sources simultaneously.

I assume the current interface reads a line at a time from the console.
You can do this asynchronously by sending packets directly to the console
handler (you can get the console handler's address from somewhere in your own
Process structure, I think). Then you can wait on both the reply port for
your packet and the AREXX port at the same time.

If the application already uses the AmigaDOS Read() calls, then this should
not take too much effort. If it uses unix-like fread() type calls, then
you might have some more work to do.

Ed Hanway
Eastman Kodak Company	       ...!rochester!kodak!elmgate!jeh
#include <std_disclaimer.h>
Technical Details
Message-ID: <1231@elmgate.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sunybcs!uhura.cc.rochester.edu!rochester!kodak!elmgate!jeh
References: <611@titan.tsd.arlut.utexas.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sunybcs!uhura.cc.rochester.edu!rochester!kodak!elmgate!jeh
From: jeh@elmgate.UUCP (Ed Hanway)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Adding Arexx Port
Message-ID: <1231@elmgate.UUCP>
Date: 15 Mar 90 20:55:42 GMT
References: <611@titan.tsd.arlut.utexas.edu>
Sender: jeh@elmgate.UUCP
Reply-To: jeh@elmgate.UUCP (Ed Hanway)
Distribution: usa
Organization: Eastman Kodak Company, Rochester, NY
Lines: 22