This is the mail archive of the ecos-discuss@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]

Re: Keyboard input (i386)


Leandro wrote:
Hello, I'm trying to get input from the keyboard in a POS context, i386 platform. The only thing I could find in eCos is to open /dev/ttydiag and read from there, but for some reason I still can't understand, everytime I read a byte from there that same byte is written on the screen. If I do not open ttydiag, no echo is shown, and I couldn't find where this behaviour takes place inside the code of the kernel.

The TTY layer defaults to echoing on input, as per CYG_TTY_IN_FLAGS_DEFAULT in io/serial/current/include/ttyio.h. You can either set the tty not to echo, or use /dev/haldiag instead of /dev/ttydiag.


Jifl
--
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
>>>>> Visit us in booth 2527 at the Embedded Systems Conference 2004 <<<<<
March 30 - April 1, San Francisco http://www.esconline.com/electronicaUSA/
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine


-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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