Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!ptsfa!ski!dr From: dr@ski.UUCP (David Robins) Newsgroups: comp.sys.apple Subject: Re: writing ^D in basic Message-ID: <2416@ski.UUCP> Date: 6 Jan 88 19:07:55 GMT Reply-To: dr@unix.UUCP (David Robins) Organization: Smith-Kettlewell Institute, S.F., CA. Lines: 29 In article <> TMPLee@DOCKMASTER.ARPA writes: >Does anyone know if there is any way in basic (applesoft) under ProDos >to get the D$ (chr$(4) or chr$(132)) character written out to a file? I >don't have a ProDos basic manual so don't know if there is any trick: >neither doubling it nor following it with a carriage return, either of >which seems a reasonable escape sequence, works. . I have seen CTRL-D inserted in REM statements in Applesoft listings to keep people from LISTing the sourcecode. RUNning ignores the REM, but on a LIST, a CRTL-D can then be followed by an FP or similar statement to kill the program. They way they got the CRTL-D in the listing was to lwave space in the REM statement using a false character, like an asterick. After wrinting the file to disk, they use a track-sector editor, like COPY II-PLUS to find the false character and replace it with the CTRL-D character. I don't recall if they used hex $04 or hex $84. -- -dave ==================================================================== David Robins, M.D. (ophthalmologist / electronics engineer) Smith-Kettlewell Eye Research Foundation (previously known as: Smith-Kettlewell Institute of Visual Sciences) 2232 Webster St; San Francisco CA 94115 415/561-1705 (voice) {ihnp4,qantel,dual}!ptsfa!ski!dr The opinions expressed herein do not reflect the opinion of the Institute!