✅ Fake loading bar
I'm trying to make a fake loading bar but it's not printing the bar in the same line
code:

13 Replies
Why would it? you never tell it to reset the console cursor position
how ?
Explore what properties and methods exist on
Console and you'll probably figure it out 🙂okay
carriage return character (
\r) moves the cursor back to the start of the line if it is an interactive shell
from what I can see, the output window you have is "redirected" instead
I might be wrong thoughI tried
Console.SetCursorPosition(); to test but it does this
so '\r' is ignored, anything you print is simply redirected to your console and printed sequencially
yeah, looks like you indeed don't have a real console buffer attached
you can test it with
should print true
so the problem is not with your code, but with your environment
I did crtl + F5 instad of F5
it was working
damn
it's working now
but I got 2 times the same thing

good :D
If you have no further questions, please use /close to mark the forum thread as answered
wait, I missed this message, not sure I understand what's happening here
I changed I'm in Visual Studio instead
it's working well