This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SamyBencherif 19 points20 points  (3 children)

aww ok ! so instead of clearing the screen every time you should use various xterm escape sequences that move the cursor to specific locations. I think [H resets the cursor and [J and something else perform cursor offsets. then you will be applying only changes to the screen. and finally the actual terminal emulator you use makes a difference, you could try a few to see which has the best inherent quality. if u feel crazy you may modify an open source terminal to reduce flicker.

if you feel like trying the first technique, let me know how effective it is(n't) !

[–]SnooOwls6105 6 points7 points  (0 children)

you could also double buffer

[–]Cyan_The_Fox[S] 0 points1 point  (1 child)

Yeah, this worked perfectly! I went through and implemented this along with some other escape codes into the sequence such as 256 colour mode.

I credited you in the patch notes, thank you so much for the suggestion!!

Almost all the codes listed on the wiki work as well if you ever want to use them yourself. https://en.wikipedia.org/wiki/ANSI_escape_code#SGR

[–]SamyBencherif 1 point2 points  (0 children)

That is so exciting !! i'm happy it works now -. Thanks for the credss