I just noticed an odd behavior. I'm using a %rs call followed by a %tx call that uses get_wkey1@() to process user input.
I created a single line edit box using %rs to capture user input. I then call my ANSI emulator which uses get_wkey1@() calls to get the user keystrokes.
What I am seeing is that the keystrokes from the user field just previously entered are being 'captured' by the get_wkey1@() call. In other words, what I had previously typed is now showing up in my next created window. However, the keystrokes only show when I type something else when presented with my ANSI emulator.
It is almost as if the keyboard buffer is still being 'tapped' for inputs. A character will show up every time I type something, and what is captured is the previous input.
I found that FLUSH_WKEYBOARD@() will flush the keyboard buffer, but shouldn't the buffer already be emptied after I close the %rs window?