maroc81 / picocom

Automatically exported from code.google.com/p/picocom
GNU General Public License v2.0
0 stars 1 forks source link

Restructure buffer scheme #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently buffering is used only when *writting* to the serial port. No
buffering (whatsoever) is used when reading from user the terminal, when
reading from the port or when writing to the user terminal. In these cases
the respective file descriptors are read and written a single character at
a time. This is bad and ugly.

Buffering should be added when reading from the port and when writing to
the terminal. Reading from the terminal must remain unbuffered (we should
never delay processing user commands) but even so an attempt should be made
to make read(2) calls handle multiple chars at a time. 

Original issue reported on code.google.com by nick.pat...@gmail.com on 2 Jun 2010 at 6:09

GoogleCodeExporter commented 9 years ago

Original comment by nick.pat...@gmail.com on 2 Jun 2010 at 6:09