This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: tty.c driver bug?
- To: chris dot gray at smartmove-eu dot com
- Subject: Re: [ECOS] tty.c driver bug?
- From: Jonathan Larmour <jlarmour at redhat dot co dot uk>
- Date: Fri, 07 Apr 2000 16:46:42 +0100
- CC: ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat UK Ltd.
- References: <Pine.BSF.4.10.10004071053410.51483-100000@plato.smove.be>
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