I actually run into that problem myself, as I too am frequently switching between the Linux shell prompt and the dot prompt. (The level of annoyance just hasn't risen to the level of formal complaint yet!)
There probably should be an option to disable this. I may put that on the list. But while researching it, I discovered a couple of related features, the first of which is entirely undocumented:
- Adding SBR=INFLD_PRINTS to the miame.ini causes ^P to bring up the GUI version of the print screen utility (same as File > Print Screen) instead of the text version. (Not much help, but maybe easier to get out of even after typing other characters before realizing what you've done.)
- Adding |Q to the type code list causes ^P to generate exitcode 25 instead of the print screen
The second feature above would be a good solution, except that it doesn't work at the dot prompt, because there isn't an explicit XCALL INFLD interface to the dot prompt. (The fact that the dot prompt uses INFLD is really just an implementation shortcut, not a feature designed for site-level-customization.) Normally you could force extra
type codes into INFLD via the
INFDEF feature, but that feature is disabled at the command prompt (as it is intended for applications, which are more likely to be subject to customization than the dot prompt.)
So perhaps we should add a
SBR=INFLD_NOPRINTS ? Or
SET NOPRINTSCREEN? Or maybe a keystroke remapping option like
SET XLAT ^P ^R (i.e. to convert ^P to ^R) ? One problem with remapping is that you would likely want to change it between the dot prompt and the application. For special key remapping, you can use
FIXTRN but it only works for multi-byte key sequences (like function keys send); it doesn't recognize ^P as a translatable sequence.