[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Control characters (was Re: Shell scripts)



On Sat, 11 Mar 2000 18:07:09 +0900, Paul Guertin <pg@sff.net> wrote:

>[pdp groups dropped, apple2 group added]
>
>dpeschel@sumatra.cs.washington.edu (Derek Peschel) wrote:
>
>> 10REM[9 backspaces]IMPORTANT NOTICE GOES HERE
>> It's 9 backspaces and not 5 because of BASIC's style of LIST.
>> 
>> That's not the trick, though.  The trick is to follow the notice by a CR,
>> Ctrl-D, any DOS command, and then another CR.  "FP" is the most useful command
>> since it wipes out the program, making it unlistable.
>
>Most people put the notice at the beginning of the program, and a
>simple LIST 20- or LIST 101- would still work. I thought about this
>for a while and wrote a program that would append ":REM ctrl-M ctrl-D
>FP ctrl-M" to every line of an Applesoft program. And then found a
>one-byte patch that would utterly defeat it (change the CMP #4 in DOS
>that checked for ctrl-D).

Or, just disconnect DOS ;)