After a little bit of naughty PEEKing in the system variables to update my
old Caps Lock indicator programs, I noticed a slight difference in how the
sv_caps (QDOS terminology) or sys_caps (SMSQ terminology) system variable at
offset $88 works on QPC2 which highlights the dangers of usign PEEK and POKE

This is a WORD length system variable, but the actual CAPS LOCK state seems
to be in the lower byte only.

For non-QPC2 systems, the value in this lower byte seems to be 255 for CAPS
LOCK ON and 0 for CAPS LOCK OFF. On QPC2, the CAPS LOCK state seems to be in
bits 0 to 6 only with bit 7 set afetr a change of state, then reset after
you press a SHIFT, CTRL or ALT key with nothing else.

Just thought I'd note this, and if anyone (Marcel? Wolfgang L?) can tell me
why, so much the better!

--
Dilwyn Jones

_______________________________________________
QL-Users Mailing List
http://www.quanta.org.uk/mailing.htm

Reply via email to