Commit ee67f79d authored by rswindell's avatar rswindell
Browse files

Removed getstr() echo from non-Unix builds.

parent 2b688942
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment