Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

considered harmful

Name: Anonymous 2013-02-25 6:06

http://harmful.cat-v.org/software/
>2013
>using harmful software

Name: Anonymous 2013-02-28 7:48

>>49
Pretty sure UNIX has handled text line-by-line for decades. Run cat, type ``hello'', hit Return, it prints ``hello''.

NO!

That's the terminal's line buffering. Read gets absolutely nothing until you press enter. If you pipe shit into cat instead of having it bind to line-buffered stdin, read gets input in blocks, which are independent from where the '\n' is.

Making a general I/O system call internally line-buffered is idiotic.

Name: Anonymous 2013-02-28 7:57

>>76
Thank you, I was thinking about this today and was about to post the exact same thing.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List