Path: utzoo!utgpu!water!watmath!clyde!att-cb!att-ih!pacbell!ames!pasteur!ucbvax!decwrl!pyramid!voder!apple!darin From: darin@Apple.COM (Darin Adler) Newsgroups: comp.sys.mac.programmer Subject: Re: EOF signaling Keywords: EOF, keyboards Message-ID: <8357@apple.Apple.Com> Date: 15 Apr 88 21:43:14 GMT References: <8671@eleazar.Dartmouth.EDU> Reply-To: darin@apple.UUCP (Darin Adler) Organization: Apple Lines: 13 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