[ECOS] tty.c driver bug?

Jonathan Larmour jlarmour@redhat.co.uk
Fri Apr 7 08:46:00 GMT 2000


Chris Gray wrote:
> 
> On Fri, 7 Apr 2000, Jonathan Larmour wrote:
> 
> > Gary Thomas wrote:
> > > > Patrick O'Grady wrote:
> > >  Might be a
> > > >> good idea that CYG_TTY_IN_FLAGS_CRLF returns a single '\n' for either
> > > >> '\r\n' or '\n\r'...  I've seen some lame systems which output those
> > > >> characters in reverse.  Cheers!
> >
> > Well, in that mode it's easiest just to pretend the '\r' didn't exist.
> 
> Unless you also want to handle systems which output just '\r' (e.g. MacOS
> uses \r internally as a record terminator.)

In which case you should have set CYG_TTY_IN_FLAGS_CR! :-) No matter what
the setting of the flags, eCos's internal representation of "newline" is
'\n' only.
 
> I happen to have a table of termios flgs open on my desk (I must have done
> something pretty evil in my previous life)

First person to recommend porting termcap to eCos gets shot :-).

Ah, that's reminded me - I must get the docs updated.

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault


More information about the Ecos-discuss mailing list