This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Termios and waiting for character input
Gary Thomas wrote:
Jonathan Larmour wrote:
Non-canonical mode processing was only implemented to support
VMIN=0,TIME=0. Support for VMIN>0 is rudimentary and I wouldn't trust
it. But VMIN defaults to 0, and that sample code posted doesn't
attempt to set it to anything else.
I imagine it defaults to something else on Linux, hence the difference
in behaviour. <fx: goes and checks> Aha, in fact it defaults to 6. The
POSIX standard does not set any requirements for the default value, so
eCos is fine on this count.
Thanks for looking into this.
Perhaps we should make the default values for VMIN/VMAX configurable,
possibly with settings that match other systems?
Maybe so if I had more confidence it worked! If Andre-John (or yourself)
can play around with VMIN>0 and don't find any problems, then we could
change the default for VMIN. NB there is no VMAX, but if you meant TIME,
then TIME>0 is definitely unsupported in the current code.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
------["The best things in life aren't things."]------ 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