C
C#2y ago
Nugget

If I do console.clear() it just skips a bunch of lines instead of clearing

I am using vsc c# and I think its an error with .net because I saw a few forums talking about it, pls help me fix it
35 Replies
sibber
sibber2y ago
thats a problem with the terminal if you run clear it also does the same thing
Nugget
Nugget2y ago
huh hol on lemme try that wait what do you mean clear is it a problem with the newly updated windows terminals
sibber
sibber2y ago
no its a problem with the vscode terminal
Nugget
Nugget2y ago
how can I fix that? it works with other code
sibber
sibber2y ago
you dont
Nugget
Nugget2y ago
:( I even made a whole new project reinstalled vscode and .net
sibber
sibber2y ago
yeah like i said its a problem with the terminal clear also doesnt really clear
Nugget
Nugget2y ago
then how come it work works with other code, its in the same project i just pasted in new code
sibber
sibber2y ago
wdym
Nugget
Nugget2y ago
like the project im working on has the error
sibber
sibber2y ago
what error
Nugget
Nugget2y ago
but i had an older project with console.clear() and I pasted the code of that in the error project and it worked the skip line its not really an error but still
sibber
sibber2y ago
oh it worked in the vscode terminal? how do you know that?
Nugget
Nugget2y ago
no I'm using external terminal I pasted in the new code and deleted the old one (temporarily) and I ran it
sibber
sibber2y ago
wait you are?
Nugget
Nugget2y ago
yes
sibber
sibber2y ago
the problem happens in the external terminal too?
Nugget
Nugget2y ago
yes
sibber
sibber2y ago
whats the external terminal?
Nugget
Nugget2y ago
it just runs the code in an external window
sibber
sibber2y ago
yeah but what is it
Nugget
Nugget2y ago
wdym
sibber
sibber2y ago
whats the terminal app called
Nugget
Nugget2y ago
cmd/powershell idk whcih one it uses lemme check
sibber
sibber2y ago
conhost? those are shells ot works for me in conhost
Nugget
Nugget2y ago
oh
sibber
sibber2y ago
which is the default one on windows
Nugget
Nugget2y ago
well its using this
Nugget
Nugget2y ago
dotnet.exe
sibber
sibber2y ago
no thats the cli
Nugget
Nugget2y ago
how do I check the terminal then
sibber
sibber2y ago
anyway i have no idea why this happens
Nugget
Nugget2y ago
thats what it says at the title is there a way I can change it to conhost
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Nugget
Nugget2y ago
YES that fixed it thanks