I want to print an array on the screen, then wait 1 second and print it again in the exact location (it will have changed) such that I only ever see one copy and the screen does not scroll downwards.
I just need a escape code the moves the cursor up one row? Is that possible>
However that thread is quite old and apparently it broke some time ago. The comment about it breaking is quite old itself by now. So I suggest you try this and report back if it doesn’t work
Edit: there is an open issue about this. Maybe @MilesCranmer can comment if there is a known workaround. @Paul_Warburton if it still doesn’t work then consider commenting on the issue I linked to draw attention to it.