It was not quite correct what I said about flickering stopping only when mouse moves. It also stops when something is output continuously to the terminal window. For example, running the following command in gnome-terminal window:
causes the flickering to stop. However, if I increase the sleep delay between writes to the terminal from 0.2 to 0.3 seconds, flickering starts again. So the output must be continuous for the flickering to stop.
It was not quite correct what I said about flickering stopping only when mouse moves. It also stops when something is output continuously to the terminal window. For example, running the following command in gnome-terminal window:
perl -MTime::HiRes -E '$i=0;while (1) { $i++; Time::HiRes::sleep( 0.2 ); say "Hello $i" }'
causes the flickering to stop. However, if I increase the sleep delay between writes to the terminal from 0.2 to 0.3 seconds, flickering starts again. So the output must be continuous for the flickering to stop.