| Log Message: |
Import of r39789 from trunk.
r39708 used the wrong criterion: it doesn't matter whether ESC is pending but whether something has been read ahead (i.e. is buffered).
If it is, select() will not succeed, so we must flush the characters that have been buffered.
|