Prevent screen flickering/paint over screen
[deleted]

When I use a clear function (that I made so I can use in windows + linux), it flickers the screen, and is unbearable. Im wondering if there is a way to prevent the screen from flickering, or paint over the screen (stackoverflow told me to do this, but I dont know how.)

You are viewing a single comment. View All
pyelias (2732)

Screen flickering happens when your program output gets split up and doesn't all arrive in your browser at the same time. To force it to be sent all at once, you can use code like this.

[deleted]

@pyelias going to look into it, but this seems like using an ansi escape code

pyelias (2732)

@TaylorLiang It is, does that cause any problems?

[deleted]

@pyelias not really, not really that portable, but Ill use it!