[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ciderpress for OS/X?



David Wilson wrote:
On Aug 15, 4:29 pm, "Michael J. Mahon" <mjma...@aol.com> wrote:
datajerk wrote:
On Aug 13, 10:49 pm, mdj <mdj....@gmail.com> wrote:
On Aug 14, 2:19 pm, datajerk <dataj...@gmail.com> wrote:
Thanks.  Identical results as before.
If you're running under BASIC.SYSTEM you should be able to do a:
printf("\x04pr#3\n");
Which would be the equivalent of
PRINT CHR$(4) ; "PR#3"
ProDOS likes the ctl-D to be the first character on a line,
that is, the first character after a CR.  Try printing:
"\x0d\x04pr#3\n"

Isn't the CR EOT (ctrl-D) sequence the way Apple DOS recognises
commands while ProDOS detects the PRINT Applesoft token execution and
then looks for a control-D?

I couldn't remember for sure, so before posting, I ran a simple test
program:

100 PRINT " " CHR$(4)"CATALOG"

and it just printed " CATALOG".  When I removed the " " from the
PRINT statement, it generated a catalog.

I then drew the incorrect inference that ctl-D had to be the first
character on a line to be effective.

So it seems that the rule is that ctl-D must be "the first character
output by a PRINT statement" for ProDOS to see it as a command.

-michael

NadaNet 3.0 for Apple II parallel computing!
Home page:  http://home.comcast.net/~mjmahon/

"The wastebasket is our most important design
tool--and it's seriously underused."