diff --git a/src/uifc/uifcx.c b/src/uifc/uifcx.c
index b8404204998ee55a4a2e72d4314f472496294f12..f9785ebe471037b7f08b64903aad3731bd3496f9 100644
--- a/src/uifc/uifcx.c
+++ b/src/uifc/uifcx.c
@@ -115,10 +115,12 @@ static int getstr(char* str, int maxlen)
 	istty=isatty(fileno(stdin));
     while(1) {
 		fread(&ch,1,1,stdin);
+#ifdef __unix__
 		if(!istty)  {
 			printf("%c",ch);
 			fflush(stdout);
 		}
+#endif
         if(ch=='\r' || ch=='\n')	/* enter */
         	break;
         if(ch=='\b') {				/* backspace */