Q68 Capslock Indicator
Posted: Wed Jun 14, 2023 8:45 pm
Here's my first Q68-specific software, a Caps Lock indicator which hijacks the yellow LED on the front panel of the Q68 to use as a visible substitute for the absence of a Caps Lock light on PS/2 keyboards connected to the Q68.
Finding myself accidentally hitting Caps Lock by mistake from time to time, and being unsure of its status as there was no indication, then having to delete and correct capital letters, I wrote this little SBASIC program which can be executed as a background job to monitor the Caps Lock setting. Via a simple POKE command, it uses the otherwise unused yellow LED on the front panel of the Q68 as a Caps Lock indicator. This LED's status can be set from the Config block of SMSQ/E to stay on or switch off after the Q68 has started up. Either way this program overrides it.
In addition to the simple Caps Lock indication, the program can also give an audible note on toggling Caps Lock off or on (different tones for both states). The program can also be set to give a tone if you type an upper case letter.
All options can be enabled or disabled by altering a variable at the start of the program - see the instructions.
Just two files in the attached zip, the very short CAPSLOCK_bas program, and CAPSLOCK_doc (instructions Quill doc file).
To start the Caps Lock program just issue a command such as:
EX CAPSLOCK_bas
It runs as a low priority background job, notes in the instructions on how to change this. If you wish to stop the running job at any time, press CTRL SHIFT Caps Lock. This Quit keypress can be altered in the program if you wish.
This program is of course specific to Q68. And as I have no idea if the yellow LED on the front panel of my very recent Q68 is unique to current Q68's or is fitted to older Q68s too, I'd be very grateful if someone with an older Q68 could test it to check if it works on all Q68's. Feedback welcome.
Finding myself accidentally hitting Caps Lock by mistake from time to time, and being unsure of its status as there was no indication, then having to delete and correct capital letters, I wrote this little SBASIC program which can be executed as a background job to monitor the Caps Lock setting. Via a simple POKE command, it uses the otherwise unused yellow LED on the front panel of the Q68 as a Caps Lock indicator. This LED's status can be set from the Config block of SMSQ/E to stay on or switch off after the Q68 has started up. Either way this program overrides it.
In addition to the simple Caps Lock indication, the program can also give an audible note on toggling Caps Lock off or on (different tones for both states). The program can also be set to give a tone if you type an upper case letter.
All options can be enabled or disabled by altering a variable at the start of the program - see the instructions.
Just two files in the attached zip, the very short CAPSLOCK_bas program, and CAPSLOCK_doc (instructions Quill doc file).
To start the Caps Lock program just issue a command such as:
EX CAPSLOCK_bas
It runs as a low priority background job, notes in the instructions on how to change this. If you wish to stop the running job at any time, press CTRL SHIFT Caps Lock. This Quit keypress can be altered in the program if you wish.
This program is of course specific to Q68. And as I have no idea if the yellow LED on the front panel of my very recent Q68 is unique to current Q68's or is fitted to older Q68s too, I'd be very grateful if someone with an older Q68 could test it to check if it works on all Q68's. Feedback welcome.