set_caps_lock
Sets CAPS LOCK on a BBC Micro to the requested state, checking current state and tapping only when necessary, then returns the resulting state.
Instructions
Set CAPS LOCK to a specific state, tapping only if needed.
Reads &025A to learn the current MOS CAPS LOCK state, taps
key 135 once iff the current state differs from on. Returns
the resulting state and whether a tap was issued, so callers
can assert the final state without a follow-up read_memory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||