Every time I use the "run current selection", the cursor goes to the terminal. When I need to continue coding, I have to point to the text manually. I suggest to make it optional. I made some modification to your code and now users can determine whether to make the cursor go back to its original position or just stay in the terminal.
When setting the "matlab-interactive-terminal.CursorBack" to true, it looks like:
As shown in the gif, the cursor stays in the text.
When setting the "matlab-interactive-terminal.CursorBack" to false, it looks like:
The cursor goes to the terminal.
Changing the configuration does't need a restart to take effect.
Every time I use the "run current selection", the cursor goes to the terminal. When I need to continue coding, I have to point to the text manually. I suggest to make it optional. I made some modification to your code and now users can determine whether to make the cursor go back to its original position or just stay in the terminal. When setting the "matlab-interactive-terminal.CursorBack" to true, it looks like:
As shown in the gif, the cursor stays in the text.
When setting the "matlab-interactive-terminal.CursorBack" to false, it looks like:
The cursor goes to the terminal. Changing the configuration does't need a restart to take effect.