Skip to content
Snippets Groups Projects
Commit ee67f79d authored by rswindell's avatar rswindell
Browse files

Removed getstr() echo from non-Unix builds.

parent 2b688942
Branches
Tags
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment