C
C#3y 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
sibber3y ago
thats a problem with the terminal if you run clear it also does the same thing
Nugget
NuggetOP3y ago
huh hol on lemme try that wait what do you mean clear is it a problem with the newly updated windows terminals
sibber
sibber3y ago
no its a problem with the vscode terminal
Nugget
NuggetOP3y ago
how can I fix that? it works with other code
sibber
sibber3y ago
you dont
Nugget
NuggetOP3y ago
:( I even made a whole new project reinstalled vscode and .net
sibber
sibber3y ago
yeah like i said its a problem with the terminal clear also doesnt really clear
Nugget
NuggetOP3y ago
then how come it work works with other code, its in the same project i just pasted in new code
sibber
sibber3y ago
wdym
Nugget
NuggetOP3y ago
like the project im working on has the error
sibber
sibber3y ago
what error
Nugget
NuggetOP3y 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
sibber3y ago
oh it worked in the vscode terminal? how do you know that?
Nugget
NuggetOP3y ago
no I'm using external terminal I pasted in the new code and deleted the old one (temporarily) and I ran it
sibber
sibber3y ago
wait you are?
Nugget
NuggetOP3y ago
yes
sibber
sibber3y ago
the problem happens in the external terminal too?
Nugget
NuggetOP3y ago
yes
sibber
sibber3y ago
whats the external terminal?
Nugget
NuggetOP3y ago
it just runs the code in an external window
sibber
sibber3y ago
yeah but what is it
Nugget
NuggetOP3y ago
wdym
sibber
sibber3y ago
whats the terminal app called
Nugget
NuggetOP3y ago
cmd/powershell idk whcih one it uses lemme check
sibber
sibber3y ago
conhost? those are shells ot works for me in conhost
Nugget
NuggetOP3y ago
oh
sibber
sibber3y ago
which is the default one on windows
Nugget
NuggetOP3y ago
well its using this
Nugget
NuggetOP3y ago
dotnet.exe
sibber
sibber3y ago
no thats the cli
Nugget
NuggetOP3y ago
how do I check the terminal then
sibber
sibber3y ago
anyway i have no idea why this happens
Nugget
NuggetOP3y ago
thats what it says at the title is there a way I can change it to conhost
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Nugget
NuggetOP3y ago
YES that fixed it thanks
Want results from more Discord servers?
Add your server