Dumpify icon indicating copy to clipboard operation
Dumpify copied to clipboard

Funky output when using VS Code or Windows Terminal

Open Tdue21 opened this issue 10 months ago • 3 comments

I am using this for ad-hoc cs-script ... scripts in VS Code, and it works like a charm. However, the output itself is a bit funky:

Image

Any ideas as to make it look like it should in VS Code?

Also, I tried calling the script directly in Windows Terminal, where the output is almost correct, except for the corners.

Image

I get that it is probably something I just have to live with, but if there is an easy fix, I'd love to hear it :)

Tdue21 avatar Feb 19 '25 14:02 Tdue21

Thanks @Tdue21 for creating the issue. Could you please provide more information? In both VsCode's and Windows Terminal, which shell are you using? CMD/PowerShell Core/PowerShell Windows/etc... ?

MoaidHathot avatar Feb 23 '25 03:02 MoaidHathot

PowerShell 7.4 or 7.5, I forget right now which. In Windows Terminal it is the same whether it is PowerShell or Cmd. I'll add more when I am at my PC.

Tdue21 avatar Feb 23 '25 07:02 Tdue21

Ok, funny thing. If I run my code in VS Code, with Ctrl+Alt+N I get this: Image

But, if I run it in the integrated terminal, I get this: Image

And now it also looks fine in Windows Terminal: Image

I did rename the script file from .cs to .csx, but I don't see how that can affect the output. Only thing it should affect is how VS Code attempts to execute it when using the Ctrl+Alt+N command, which it didn't by the way ;)

So, it would appear that I was just being unlucky when I tried the first time *shrug*

Only the Output window in VS Code seem to be affected, and that is most likely some kind of encoding thing.

I don't think it is something worth spending a lot of time on.

Tdue21 avatar Feb 24 '25 10:02 Tdue21