Re: stdin broken for windows console app under rxvt

2006-03-12 Thread Brian Dessent
"Robinson, Mark" wrote: > A simple console app compiled with MingW (-mno-cygwin) (or VC++) cannot > read from stdin when executed in an rxvt or xterm terminal: > > #include > main() { > int c; > fputc(isatty(stdin), stdout); > while ((c = getc(stdin)) != EOF) fputc(c, stdout); > } > > Fur

stdin broken for windows console app under rxvt

2006-03-12 Thread Robinson, Mark
Greetings A simple console app compiled with MingW (-mno-cygwin) (or VC++) cannot read from stdin when executed in an rxvt or xterm terminal: #include main() { int c; fputc(isatty(stdin), stdout); while ((c = getc(stdin)) != EOF) fputc(c, stdout); } Furthermore, isatty(stdin) returns 0.