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

Re: Control characters (was Re: Shell scripts)



[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).

> I suppose "INIT HELLO"
> would also be a useful command.

A friend tried that one on me, but the recalibrating noises give one
plenty of time to do a ctrl-reset before the actual formatting starts.

Paul Guertin
pg@sff.net