Path: utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!ucbvax!UCONNVM.BITNET!STEIN From: STEIN@UCONNVM.BITNET (Alan Stein) Newsgroups: comp.sys.apple Subject: Re: Chr$(4) and Linefeeds Message-ID: <8901291204.aa18648@SMOKE.BRL.MIL> Date: 29 Jan 89 16:58:27 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 32 >In article <8901270945.aa15170@SMOKE.BRL.MIL> UNCKNG@UNC.BITNET ("Kevin N. > Gunn") writes: >[previous stuff brutally scrubbed] >> What I'd like to know >>is WHY DOS 3.3 NEEDS that carraige return. > >DOS 3.3 only looks for DOS commands at the start of a line. If ctrl-D isn't >the first character, the command gets ignored. ProDOS tried to be more >intelligent about it; it finds the commands anywhere. However, I believe >that issuing a chr$(13)chr$(4)"catalog" while get you nowhere under ProDOS. > >>-Kevin N. Gunn The carriage return is only needed after something is outputted without a carriage return at the end, eg if you have a print statement ending with a semicolon, or after a GET. Unfortunately, the time honored trick of letting D$=chr$(13)+chr$(4) doesn't work with Prodos, since prodos looks only for a ctrl-D at the start of a print statement. (That was an attempt to correct the problem of needing the CR before the ctrl-D, but inadvertantly ruined the time honored fix.) Alan H. Stein Department of Mathematics The University of Connecticut at Waterbury 32 Hillside Avenue, Waterbury, CT 06710 (203) 757-1231 Internet: stein%uconnvm.bitnet@mitvma.mit.edu BITNET: STEIN@UCONNVM UUCP: {rutgers psuvax1 ucbvax & in Europe mcvax} !UCONNVM.BITNET!STEIN Compu$erve: 71545,1500 Genie: ah.stein