This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

termios patch to fix ONLCR postprocessing


Here is a patch that fixes the postprocessing of '\n' when
ONLCR is in effect.  '\n' is supposed to get translated to
CR+NL, but the original code translates it to just a single CR.

The patch also fixes the echo of '\n', by using the (now fixed)
termios_write() routine to do the echo, rather than cyg_io_write().

Comments?

-Rick

-- 
Rick Richardson  rickr@mn.rr.com        http://home.mn.rr.com/richardsons/
Stock information at your fingertips:   http://linuxtrade.0catch.com/

"My, my, I'm late for my bridge club."  "Gee, mom, isn't that bridge
built yet?"  "No, son, and it won't be until both sides of the big ditch
can press the same button at the same time."  -The Firesign Theater

Attachment: ecos-termios.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]