r/AskProgramming • • Jun 30 '26

Other What is buffered input?

I was reading the documentation for FALSE when I got to the section on I/O and got super confused at the warning "watch out: all these are BUFFERED." So, what is buffered input?

0 Upvotes

11 comments sorted by

View all comments

Show parent comment

2

u/Dean-KS Jun 30 '26

Unless you read every character which then allows for control codes and escape sequences, <tab> etc.

2

u/atarivcs Jun 30 '26

... in which case the input isn't buffered

2

u/Western-Emphasis-105 Jul 02 '26

when the user hits enter, you get an array with however many characters the user typed, instead of a new byte every time the user hits a key.