nuttx-apps icon indicating copy to clipboard operation
nuttx-apps copied to clipboard

apps/system/readline does not use buffered I/O

Open patacongo opened this issue 5 years ago • 0 comments

readline implementation does not use C-buffered I/O, but rather talks to serial driver directly via read(). It includes VT-100 specific editing commands. A more generic readline() should be implemented using termios' tcsetattr() to put the serial driver into a "raw" mode.

This will cause problems if you are using mixed C-buffered I/O with readline and fgetc, for example.

patacongo avatar Jul 02 '20 17:07 patacongo