Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Done Clear accumulated keystrokes

May
12,845
164
I have BTMs which run for a long time and are in visible consoles (so I can monitor output). That provides plenty of opportunity for those TCCs to collect unintended keystrokes (by vitrue of user error). When I terminate such a BTM with Ctrl-C, all the accumulated keystrokes are pumped to the command line. I can avoid it like this

Code:
on break ( inkey /c /w0 %%zz & quit )

Can you make that easier?
 
It'd be easy enough to add as a plugin command. You could even hook INKEY, check for a lonesome /C and handle that yourself, otherwise pass control back to TCC.
 
Back
Top