If a user enters a interpreter from within the terminal. e.g. python, then the prompt may change, $ -> >>>. We should provide a mechanism to automatically update the prompt, and reset the prompt, when the user leaves the interpreter.
To do this we could remap <cr> to run some commands if the current command is python/lua/ruby/etc.. and the same for whatever command is used to exit the interpreter. We will also need to handle the case where the user uses control characters, e.g. ^C, to leave the interpreter.
If a user enters a interpreter from within the terminal. e.g.
python, then the prompt may change,$->>>>. We should provide a mechanism to automatically update the prompt, and reset the prompt, when the user leaves the interpreter.To do this we could remap
<cr>to run some commands if the current command is python/lua/ruby/etc.. and the same for whatever command is used to exit the interpreter. We will also need to handle the case where the user uses control characters, e.g.^C, to leave the interpreter.