[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Command Line



Fred:

 -------------- Original message ----------------------
From: "Fred Weiner" 
> Need some assistance with commands on commandline staying there after
> execution; happens with frame commands, for example, fishout hint 
> fishout stays up there; I retrieve a
> c:\xy4\center.pgm (T. Behr's poetry centering code) with the 'R' (runcode)
> option; command line now reads fishoutrun c:\xy4\center.pgm (no space
> between 'fishout and run')

You don't say it explicitly in your post, but I take it that your FISHOUT data entry consists of:

{Ascii-223}
run c:\xy4\center.pgm
{Ascii-223}

If I'm right, then the Runcode option is working as intended. Note well that Runcode does NOT mean
"put a RUN command on the CMline"! Runcode means "run (execute) the FISHOUT data
entry"; it presumes that the data consists of the XPL code to be executed -- not the name of
the program but the program itself. Here, your "code" consists of plain text ("run
c:\xy4\center.pgm"); and, in XPL, when you "run" (execute) plain text, the text is
inserted at the cursor position -- which is what is happening in your example.

To use the Runcode option to pop your RUN command to the CMline, you need to preface the command
with a func BC , which moves the cursor to the CMline and clears any existing text. Command PFUN BC
to embed the function; the entry should look like this:

{Ascii-223}
BC run c:\xy4\center.pgm
{Ascii-223}

Alternatively, you could have Runcode go the extra step and launch the RUN command, with or without
first putting it on the CMline:

{Ascii-223}
BC run c:\xy4\center.pgmXC
{Ascii-223}

or:

{Ascii-223}
BX run c:\xy4\center.pgmQ2
{Ascii-223}

(Again, XC, BX and Q2 are all 3-byte functions -- embed them with PFUN xx, where xx is the 2-character function mnemonic, e.g., PFUN BX.) In each of the above examples, Runcode would execute the code, which now includes the functions needed to perform the desired task.

Another possibility with FISHOUT is to MErge CENTER.PGM itself, in its entirety, into FISHOUT.DAT,
like this:

{Ascii-223}
;*; Tim Baehr's CENTER.PGM
[MErge contents of CENTER.PGM here]
{Ascii-223}

You could then issue FISH CENTER to locate the code, and hit uncode to run it.

Finally, the latest refresh of U2 (dated 7 June 06) contains an update to FISHOUT that adds a new
option, "C", to pop the current data entry to the CMline. (It also cures a bug in FISHOUT
that interfered with the use of SEarch wildcards in CMline "hints" -- an important fix.)
The point here, Fred, is that if you grab the upgrade, you can leave your data entry as is; just use
option "C" instead of "R", and you'll be good to go.

--
Carl Distefano
cld@xxxxxxxx