Fix func 0Bh (Get STDIN Status) always returns AL=FFh with some alternative CON drivers:

* qwikansi.sys (simtelnet: simtelnet/msdos/screen/qwikansi.zip
* most of Japanese input methods (Microsoft MS-IME, ATOK, WXP/WX2/WX3)
This commit is contained in:
lpproj 2019-12-27 17:41:51 +09:00 committed by Kenneth J Davis
parent 9eb9b1a046
commit 19a6dc1ba4

View File

@ -96,7 +96,9 @@ STATIC void CharCmd(struct dhdr FAR **pdev, unsigned command)
STATIC int Busy(struct dhdr FAR **pdev)
{
CharCmd(pdev, C_ISTAT);
CharCmd(pdev, C_NDREAD);
if (CharReqHdr.r_status & S_ERROR)
CharCmd(pdev, C_ISTAT);
return CharReqHdr.r_status & S_BUSY;
}