Windows does not have the error EINTR when a blocking syscall is
interrupted by a signal. The ReadFile API that fgets is implemented
with instead use ERROR_OPERATION_ABORTED. Check for that after fgets.
This actually doesn't seem to be working due to a bug in Windows' ReadFile. https://github.com/microsoft/terminal/issues/334 @stella.stamenova any idea about this?