I'm seeing where plots are "lost" when using pause -1. I see this for the QT an X11 terminals. If you hit enter in the terminal window each plot is properly displayed and paused for. However, if you hit enter sometimes and close the plot window other times, plots are not paused for.
The attached script replicates the problem. Follow the prompts for hitting return and closing the plot window. Plots 7, 8 and 9 are never displayed. There seems to be a connection between the number of times you close the window and the number of plots skipped.
Version 5.4.4, compiled from source
Centos 7 and RHEL 8
There is a long history on this one.
See discussion on previous tracker issues
https://sourceforge.net/p/gnuplot/bugs/2292/
https://sourceforge.net/p/gnuplot/bugs/2134/
The problem is that we're fighting two contrary problems - inserting a '\n' prevents dropped input characters in some circumstances, but conversely inserting a '\n' causes premature return from a pause. Pick your poison.
There may well be a different solution to both problems, but so far no one has suggested it.