MatrixBrandy icon indicating copy to clipboard operation
MatrixBrandy copied to clipboard

GET etc. never return Ctrl-@

Open jgharston opened this issue 6 years ago • 2 comments

Is there a reason for GET/GET$/INKEY/INKEY$ and elsewhere to use constructions like this? do { ch=emulate_get() & 0xFF; } while (ch==0);

It means that Ctrl-@ is never passed back to the caller.

jgharston avatar Dec 10 '18 16:12 jgharston

This was a side-effect of fixing another bug where some keys (notably the cursor keys) returned two values in quick succession - a 0 followed by its actual value.

soruk42 avatar Dec 11 '18 11:12 soruk42

On 11-12-2018 11:32, Michael McConnell wrote:

This was a side-effect of fixing another bug where some keys (notably the cursor keys) returned two values in quick succession - a 0 followed by its actual value.

Ah, so fixing the bug in keyboard.c removes the need for it in the caller.

-- J.G.Harston - [email protected] - mdfs.net/jgh

jgharston avatar Dec 11 '18 18:12 jgharston