What happens if you press and hold Escape? Do you get repeated Escape conditions processed by BASIC? This is just a roundabout way of pointing out that the BBC OS doesn't expect Escape to auto-repeat.Hmm. Looks like I am processing Esc twice - once to stop the program and also sending it on the command line. I wonder how I'll distinguish between those 2 cases..
I can't think of another reason why it would be getting processed twice. In theory, when BASIC detects the escape condition (by polling bit 7 of $FF) it should then acknowledge it immediately (calling OSBYTE 126 to clear bit 7), and nothing should then be setting it again until Escape is released and pressed again.
Statistics: Posted by Rich Talbot-Watkins — Fri Feb 23, 2024 11:11 am