Can I draw a unicodeplot repeatedly without annoying shift on terminal?

Also @pfitzseb 's solution works quite well, if your terminal supports escape codes:

for i in 1:10
      print("\e[0;0H\e[2J")
      display(plot(sin, 0, i))
      sleep(0.5)
end

meaning if you put the first two lines of the loop body in a callback, it should work as expected.

2 Likes