[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Control characters (was Re: Shell scripts)
- Subject: Re: Control characters (was Re: Shell scripts)
- From: Paul Guertin <pg@sff.net>
- Date: 2000/03/11
- Newsgroups: comp.sys.apple2, alt.folklore.computers
- Organization: Amalgamated Karma
- References: <AtP94.8925$7S.6211@news20.bellglobal.com> <8a66br$np$1@citadel.in.taronga.com> <8a86ji$529$1@bob.news.rcn.net> <slrn8cg3hl.207.benc@krustbustr.benzone.org> <8a94f0$lhj$1@allhats.xcski.com> <slrn8cg7ba.pob.dpeschel@sumatra.cs.washington.edu>
- Reply-to: pg@sff.net
[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