(Sep-10-2019, 01:03 PM)snippsat Wrote: Search setting code-runner.runInTerminal
Thanks for your kind observation. I had experimented with setting the runInTerminal property of code-runner to true,and there was no problem.
However, as explained in my post, I was trying to explore the feasibility of running user interaction code on output pane as its quality appears to be better than that on terminal pane.
On exploring the internet, there are quite a few postings raising this problem. the work-around suggested therein so far is the same as advised by you, i.e. running the code in terminal pane.
Perhaps the hitch might lie in the design of VS-Code itself, wherein the output pane has intentionally been kept immune from user interaction.
Results of some tests conducted at my end are placed below, for ready reference:
T-01:
Right Click > Run In Terminal:
Same results with Code Runner installed or Not.
Term Pane Name: Python , Output Pane: blank
Usual terminal clutter is present before commencement of output.
T-02:
Code Runner Installed and its runInTerminal property is set to true:
Press Ctrl+Alt+N for running the code:
Term Pane Name: Code , Output Pane: Blank
Usual terminal clutter is present before commencement of output.
T-03:
Code Runner Installed and its runInTerminal property is set to false:
Press Ctrl+Alt+N for running the code:
Output Pane Name: Code , Termial Pane: Cmd
Very neat output on the output pane.
T-04:
Default task named RunPython set via tasks.json
Same results whether Code Runner installed or Not
Press Ctrl+Shift+B for running the code.
Term Pane Name: Task-RunPython , Output Pane: Blank
In this case, the output of terminal pane is observed to be neatest as compared to other terminal based alternatives.
Conclusion:
If it is felt necessary to run code in terminal, doing so via a set task (Ref T-04 above), provides neatest output, almost matching output pane mode of Code Runner. This alternative works even if Code Runner is not installed.