[comp.sys.mac] LSP keyboard EOF

friedman@uiucdcsb.cs.uiuc.edu (02/12/88)

A LightSpeed Pascal question:

In reading from standard input, from the keyboard, is there any way to
signal end of file to the program?  I can't find any indication in the
manual.

Thanks to anyone who can help.

       		H. George Friedman, Jr.
       		Department of Computer Science
       		University of Illinois at Urbana-Champaign
       		1304 West Springfield Avenue
       		Urbana, Illinois  61801

       		USENET:	...!{pur-ee,ihnp4,convex}!uiucdcs!friedman
       		CSNET:	friedman@a.cs.uiuc.edu
       		ARPA:	friedman@a.cs.uiuc.edu

leonardr@uxe.cso.uiuc.edu (02/15/88)

friedman@uiucdcsb.cs.uiuc.edu(H. George Friedman, Jr.) writes in comp.sys.mac

>A LightSpeed Pascal question:
>
>In reading from standard input, from the keyboard, is there any way to
>signal end of file to the program?  I can't find any indication in the
>manual.
>
>Thanks to anyone who can help.
	I believe (and Rich will correct me if I am wrong, won't you Rich?) that
you can signal the end of file the same way you would if you were working on a
Unix machine (for example) by using a Cmd-D (or Control-D, to those Unix folk).
I think that the reason for this is that Cmd/Ctl-D is a Pascal standard.


+---------------------------------+-----------------------------------+
+                                 +  Any thing I say may be taken as  +
+   Leonard Rosenthol             +  fact, then again you might decide+
+   President, LazerWare, inc.    +  that it really isn't, so you     +
+                                 +  never know, do you??             +
+   leonardr@uxe.cso.uiuc.edu     +                                   +
+   GEnie:  MACgician             +                                   +
+   Delphi: MACgician             +                                   +
+                                 +                                   +
+---------------------------------+-----------------------------------+

friedman@uiucdcsb.cs.uiuc.edu (02/16/88)

Leonard Rosenthol (leonardr@uxe.cso.uiuc.edu) kindly responded to my query:

>>A LightSpeed Pascal question:

>>In reading from standard input, from the keyboard, is there any way to
>>signal end of file to the program?  I can't find any indication in the
>>manual.

>>Thanks to anyone who can help.

>	I believe (and Rich will correct me if I am wrong, won't you Rich?) that
>you can signal the end of file the same way you would if you were working on a
>Unix machine (for example) by using a Cmd-D (or Control-D, to those Unix folk).
>I think that the reason for this is that Cmd/Ctl-D is a Pascal standard.

I think I had tried that, but will try it again.

I have also (so far) gotten email responses from Richard Siegel of THINK
(rs4u+@andrew.cmu.edu), who suggested the Enter key, but only if using
the old Mac keyboard; and from Ken Hancock (isle@eleazar.dartmouth.edu),
who suggested Cmd-Shift-3.

I haven't tried any of these yet, but will do so soon.

Thanks to all three of you for the help!


       		H. George Friedman, Jr.
       		Department of Computer Science
       		University of Illinois at Urbana-Champaign
       		1304 West Springfield Avenue
       		Urbana, Illinois  61801

       		USENET:	...!{pur-ee,ihnp4,convex}!uiucdcs!friedman
       		CSNET:	friedman@a.cs.uiuc.edu
       		ARPA:	friedman@a.cs.uiuc.edu

isle@eleazar.Dartmouth.EDU (Ken Hancock) (02/17/88)

friedman@uiucdcsb.cs.uiuc.edu(H. George Friedman, Jr.) writes in comp.sys.mac
>
>A LightSpeed Pascal question:
>
>In reading from standard input, from the keyboard, is there any way to
>signal end of file to the program?  I can't find any indication in the
>manual.

Cmd-shift-3 will work on the MacPlus style keyboards and the ADB keyboards.

Ken



-- 
Ken Hancock                        |    UUCP: isle@eleazar.dartmouth.edu
Personal Computing Ctr. Consultant |  BITNET: isle@eleazar.dartmouth.edu
________________________________________________________________________
DISCLAIMER: If people weren't so sue-happy, I wouldn't need one!

atchison@hpindda.HP.COM (Lee Atchison) (02/18/88)

Another thing to try is Cmd-. (command-period).  This is the way that
Turbo Pascal signals EOF.  It may work for LSP as well........

Just a thought.

			-lee
----
Lee Atchison
Hewlett Packard, Information Networks Division
atchison%hpindda@hplabs.hp.com