The problem originates in the definition of HAVE_USLEEP in config.mgw. Albeit this is correct, usleep() does not seem to work correctly. In any case we should use win_sleep() at this correctly handles all interactive terminals (win, wxt, qt, caca) on Windows, not just the currently active one.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
usleep() only seems to work with values < 1s. This only causes a problem when using the windows, terminal, but not for wxt or qt. So here are two work-arounds to wait for 2 seconds:
dofor[i=1:20]{pause0.1}
or
settermpush; set term wxt; pause 2; set term pop;
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Confirmed. Also applies to current CVS.
The problem originates in the definition of HAVE_USLEEP in config.mgw. Albeit this is correct,
usleep()does not seem to work correctly. In any case we should usewin_sleep()at this correctly handles all interactive terminals (win, wxt, qt, caca) on Windows, not just the currently active one.usleep()only seems to work with values < 1s. This only causes a problem when using thewindows, terminal, but not forwxtorqt. So here are two work-arounds to wait for 2 seconds:or
Fixed in CVS for version 5.1 and 5.0.