Describe the feature you'd like
We should prevent any unwanted command to be executed behind the scenes and if possible, prevent any command that it could require a full ANSI terminal emulation.
These two environment variables are set in pexpect.replwrap and we should do something similar.
- Perhaps are other variables that we should also set
- Perhaps we can do something similar to other shells
Additional context (optional)
Unlikely but this could be non-backward compatible change.