Console question
Etienne Fortin
etienne.fortin at sensio.tv
Wed Nov 3 19:47:44 UTC 2004
Hi Eric,
Thanks for the reply. I'm using ICANON=0. I assumed that since I receive
binary data, I don't want any processing on the inputted data. Am I
right about ICANON and that requirement?
Etienne Fortin
Sensio
-----Message d'origine-----
De : Eric Norum [mailto:norume at aps.anl.gov]
Envoyé : 3 novembre, 2004 14:37
À : Etienne Fortin
Cc : rtems-users at rtems.com
Objet : Re: Console question
Etienne Fortin wrote:
> Hi everyone,
> Question: What can cause the fact that characters pushed into the
> console by rtems_termios_enqueue_raw_characters() are not "seen" by
> fgetc(stdin)?
>
> Situation: I can get some characters from stdin by using both fgetc()
> fread(). After some characters are received (about 1k), the received
> characters are pushed into the console (I single stepped the interrupt
> handler and rtems_termios_enqueue_raw_characters() is called), fgetc()
> repeatedly returns EOF.
>
> Anyone with experience with a similar problem? Can it has to do with
> the fact that stdin is line buffered?
Probably.
Are you using cooked (ICANON=1) or raw (ICANON=0) input? The cooked
buffer is
not unlimited.
--
Eric Norum norume at aps.anl.gov
Advanced Photon Source Phone: (630) 252-4793
Argonne National Laboratory
More information about the users
mailing list