Open clubby789 opened 3 years ago
In contexts with no usable stdin (for instance, PSRemoting), the prompt would loop forever. This patch checks the return value of fgetws and breaks if it indicates an error in reading.
stdin
fgetws
In contexts with no usable
stdin
(for instance, PSRemoting), the prompt would loop forever. This patch checks the return value offgetws
and breaks if it indicates an error in reading.