Compiling a SuperBasic program

Anything QL Software or Programming Related.
User avatar
pjw
QL Wafer Drive
Posts: 1608
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:

Re: Compiling a SuperBasic program

Post by pjw »

tofro wrote: Sun Jan 05, 2025 9:43 pm <>
The file name contains a dot - You need to put it in quotes.
That was exactly to sort of brick wall I ran into on the first day with my
new QL! I spent hours trying to figure out how to work with that weird
hybrid device string that isnt really a string. I dont remember the exact
details, but it was something similar, and it almost drove me crazy! Since
then I neurotically always quote device names. To that end, once hotkeys
became available I coded the following few keys:

Code: Select all

501 ERT HOT_KEY("'", "''" & CHR$(192))
502 ERT HOT_KEY('@', '""' & CHR$(192))
501 -> ALT + ' => two single quotes with cursor in between
502 -> ALT + SHIFT ' => two double quotes with cursor in between

Of course that requires some form of hotkey toolkit loaded with your boot
file, so perhaps its too early for some - and too late for others..

Here are some more for the inbetweeners:

Code: Select all

503 ERT HOT_KEY(')', '()' & CHR$(192))
504 ERT HOT_KEY('(', '("")' & FILL$(CHR$(192), 2))
505 ERT HOT_KEY('~', '(#)' & CHR$(192))
503 -> ALT + ) => two brackets with cursor in between, and
504 -> ALT + ( => two brackets encompassing a set of double quotes with
cursor in between, and finally
505 -> ALT + SHIFT + # => Set of brackets with cursor following hash,
usful for functions taking a channel number.

Before we had a decent line editor I had similar keys just to move the
cursor to the start or end of a line. That saved some hassle, but is not
needed in Minerva or SMSQ/E.

PS: Its possible some of the keys used dont match your own, depending on
keyboard, platform and host OS. Just adjust accordingly or chose different
ones. And for your sanity’s sake, preferably ones that work the same
across all the QL systems you use!


Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
Post Reply