[comp.sys.mac.programmer] EOF signaling

mark@eleazar.Dartmouth.EDU (Mark Nowacki) (04/15/88)

Hi there...

A question that came up the other day while discussing Macintosh keyboards:

How does onegenerate an EOF signal from the various types of Mac keyboards?

I know the old (really old) keyboard uses the Enter key, and someone said
the Mac II uses the Control-C combination.

If the various users of different flavors of Mac would send me Email, I'd
gladly post a summary for the common knowledge.

Thanks!

---
Mark Nowacki                         "Lovely to see you again, my friend!
Dartmouth College                     Walk along with me to the next bend..."
                                             - The Moody Blues
uucp   ...!linus!dartvax!eleazar!mark
othernets  mark@eleazar.dartmouth.edu       Just say fieyrnt!     8^)

darin@Apple.COM (Darin Adler) (04/16/88)

In article <8671@eleazar.Dartmouth.EDU> mark@eleazar.Dartmouth.EDU (Mark Nowacki) writes:
> How does onegenerate an EOF signal from the various types of Mac keyboards?

The keyboard on a Macintosh generates keyboard events, rather than acting
as a file, as terminals do on Unix. Thus, the question of which character
generates an EOF is dependent on the IO package you are talking about.

For example, MPW uses Command-Enter for EOF, Macintosh Pascal (the interpreted
product created by Think for Apple) uses the Enter key for EOF, and I use
Control-D for EOF when using a terminal program with our VAX.
-- 
Darin Adler, Apple Computer                          AppleLink:Adler4
UUCP: {sun,voder,nsc,mtxinu,dual}!apple!darin  CSNET: darin@Apple.com