Console question
Eric Norum
norume at aps.anl.gov
Wed Nov 3 19:36:47 UTC 2004
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