vscode-code-runner icon indicating copy to clipboard operation
vscode-code-runner copied to clipboard

Fix code-runner.clearPrevious:true for terminal tab [Bug]

Open neurorune opened this issue 1 year ago • 1 comments

  • VS Code Version: 1.89
  • OS Version: Windows
  • Code Runner Version: v0.12.2

Describe the bug When the code runner setting is set to "clear pervious output", and for the first run when the terminal is closed it works fine the terminal has nice output but in subsequent runs the output is ugly because there is massive space and weirdly formatted text. So please fix this issue.

To Reproduce Steps to reproduce the behavior:

  1. Press the run button more than once and you should so the massive gaps and weirdly formatted text for any programming language.

Actual behavior It introduces massive gap between the prompt and the output when you run the code more than once.

Expected behavior It should show the output and should not have any spaces and gaps before the output.

Screenshots For the first run: image

Subsequent runs: image image

neurorune avatar Jun 05 '24 21:06 neurorune

I see this too. It appears to be related to my bug report. If I use "run code" is has the same problem. It looks like code runner is not sending the correct command to clear the terminal. Why does it not just send 'cls'? A temp fix to my problem is not to tick the 'Clear Previous Output' setting.

GedToon avatar Aug 10 '24 09:08 GedToon