Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!uw-beaver!cornell!rochester!pt.cs.cmu.edu!cadre!pitt!cisunx!ejkst
From: ejkst@cisunx.UUCP (Eric J. Kennedy)
Newsgroups: comp.sys.amiga.tech
Subject: Re: ARexx Questions
Message-ID: <10865@cisunx.UUCP>
Date: 7 Jul 88 18:15:08 GMT
References: <2119@cadovax.UUCP> <4131@cbmvax.UUCP> <10768@cisunx.UUCP> <650@osupyr.mast.ohio-state.edu>
Reply-To: ejkst@unix.cis.pittsburgh.edu (Eric J. Kennedy)
Organization: Univ. of Pittsburgh, Comp & Info Sys
Lines: 90

In article <650@osupyr.mast.ohio-state.edu> vkr@osupyr.mast.ohio-state.edu (Vidhyanath K. Rao) writes:
>The answer is yes. But I do need one thing: UEdit must tell its state
>to all comers [with the proviso that this is always subject to change.]
>Does it have such a function? BTW, is this the commercial version and
>how do you feel about it. In particular how does it compare to TxEdPlus?

Again, I do not have Arexx yet.  But, reading the docs, it seems that
Uedit has an "Auto-traffic" command, which "Toggles auto-traffic mode.
If auto-traffic mode is ON, the idle comand handles all ARexx traffic."
This may be what you're asking for.  Also, it says "Also, in CLI or a
shell, you can control Uedit using ARexx messags."  

The previous quotes and and the following are taken from the may 16
Uedit Customer Mailing.
----

The following apply to Auto-traffic mode.

When auto-traffic mode is Off, traffic is handled at your discretion,
using the commands above. [Err, see the menu command below. -ejk]

When auto-traffic mode is turned On, traffic is processed by the idle
command.  The following types of messages ar processed.  (This is, of
course, customizable):

1.  If the messags has an "f:" prefix, Uedit loads the file whose
    filename is given.  Example:  rx f:myDir/myFile

    If Uedit is in Tiny Window when a message arrives, it springs back to
    its big window and processes the message.  This gives you a faster
    in-and-out editing capability like smaller editors are noted for.

2.  If the message has a "c:" prefix, it is interpreted as a series of
    inputs.  Messags can send a series of inputs to Uedit (commands and
    text), controlling it from outside.
    
    The "Make x.rexx" command lets you build such a message automatically by
    pressing the desired keys, just as in Learn Mode.  Once it is saved to
    disk, you can use it in CLI by typing:  rx x
    
3.  If the message has no prefix, its text is inserted at the cursor
    location.  Example:  rx u This is my text to go into Uedit at the
    cursor.



Command language interface:  The interface is powerful and flexible.
Two functions, rexxIn() and rexxOut(), are used.  Default action codes
correspond to common ARexx message types.  You can override the defaults
by using reall ARexx action codes and flag bit modifiers.



The "Uedit <====> Rexx" menu commands supplied are:
    "ED out buffer" Edit ARexx output buffer
    "ED in buffer " Edit ARexx input buffer
    "Out->Rexx    " Send output buffer to ARexx.
    "In<-Rexx     " Fetch ARexx input into input buffer.
    "Hilite->Rexx " Send hilite region to ARexx.
    "Cursor<-Rexx " Fetch ARexx input at cursor in current buffer.
    "Reply OKAY-> " Send OKAY reply to last message.
    "Reply text-> " Send OKAY reply plus hilited ext to last msg (if
                    incoming message asked for a text result).
    "Auto-traffic " Toggle auto-traffic mode.  If auto-traffic mode is
                    ON, the idle command handles all ARexxs traffic.
    "Make x.rexx  " Create an ARexx program to send inputs to Uedit.


-------------------------


Hope this answers some of your questions.

BTW, naturally, you can write your own commands for using the ARexx
ports.  For instance, I'm about to order ARexx and AmigaTeX, and I plan
to write "TeX buffer" and "TeX hilite" commands.

Oh, yes, I believe the redistributable version of Uedit 2.3h (UES) also
has the ARexx port.  I don't use UES, since I have a compulsive need to
program Uedit.   In other words, I use the commercial version, but as
far as I know, the shareware or distributable version has the ARexx
port, too.  (I'll check on that, though.)

Regarding TxED Plus, I've never seen it.


-- 
------------
Eric Kennedy
ejkst@cisunx.UUCP