Hi, do you know a way (with some esoteric objc maybe?) to bypass (prevent the execution of) the Pythonista internal python interpreter when user presses the key return in built-in keyboard in the Python console after writing a command, in order to run other external scripts written by user?
For example: when I'm in the Pythonista console and I write:
>>> print('hello') ## and press "return" key in the keyboard
I'd like to force Pythonista to execute a script X instead of the normal execution (that is the execution of the command "print('hello')" by the internal python interpreter of Pythonista). So, following this example, I don't want the common output that is:
>>> hello
but I'd like to have, as output and as a simple example, the number of single characters in the string of the command "print('hello')" (if the script X is a script that reads the string written by user and counts its characters). So when I press return key, I'd like to see in console the output:
>>> 14
that are the number of characters of the input string "print('hello')".
The script X that counts the characters of the user input string in console is only an example, only to explain better my question.
Thank you
Regards

