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

Re: [MiNT] GEM edit field question



Lonny Pursell wrote:
Hi,

I'm very curious about something.  Whilst making my gfa editor and adding
the search feature I had a problem.  The 'at' sign or '@' is used
extensively in GFA as the short form for 'gosub'.  The Problem as you may
have guessed is that typing '@my_routine' gives a blank edit field.

Never fully understood this.  Only have theories.

Is it just a bad design from 1985 when the assumption was the '@' char would
probably not be used?  Anyone know?  Documented somewhere?


It is a known 'feature' of the te_ptext field.
Atari Profibuch ST/STE/TT page 559, ST page 355

It is kind of 'set placeholders' character when in the first position.
@2345678  yields 8 space characters. The string must be as long as
pe_ptmplt indicates.

It looks like a quick way to set a field to spaces.
Note that ESC sets the field to a "" (empty) string.

The only solution for you is to prescribe another character which
you will replace by @ subsequently.

--
Groeten; Regards.
Henk Robbers.    mailto:h.robbers@chello.nl
                   http://members.ams.chello.nl/h.robbers/Home.html
Interactive disassembler:     TT-Digger;  http://digger.atari.org
A Home Cooked teXt editor:    AHCX