This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Keyboard input (i386)
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Leandro <leandro at hasar dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 04 Mar 2004 01:01:22 +0000
- Subject: Re: [ECOS] Keyboard input (i386)
- References: <404394AA.4030202@hasar.com>
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