cbreak problem
Doug Gwyn
gwyn at brl-smoke.ARPA
Sun Feb 9 21:39:27 AEST 1986
In article <299 at ucbjade.BERKELEY.EDU> cnrdean at ucbtopaz.BERKELEY.EDU () writes:
>I am porting a program on to a Berkeley 4.2 Vax, and I'm having
>trouble with my cbreak mode: I need to process characters as they come
>in. My problem is that when I try to print the characters, they don't
>get printed at the point that I request them to, unless I put a fflush
>in. I thought that when I was in cbreak mode, putchar() would show up
>immediately, without fflushing.
No, STDIO does not pay attention to the terminal mode.
By default, output to a terminal (except stderr) will
be line-buffered. You can override this by invoking
setbuf(stdout,(char *)NULL) before doing any output.
More information about the Comp.unix.wizards
mailing list