On Thu, Jan 28, 2021 at 3:16 AM Grr <gebbe...@gmail.com> wrote:

> I opted for The Right Thing(TM) and implemented a simple serial input echo
> capabilities for serial driver introducing use of ECHO flag in
> drivers/serial/serial.c and proper configuration options in menuconfig
>
> Now the interface of an interactive serial program works the same in Linux
> and NuttX  :)
>
>
Echo from the serial driver looks the right direction.



> Next task is to disable NSH echo and I'll have a complete solution
>
> If anyone is interested, I can do a PR
>
>
Yes, please.


> El mar, 26 ene 2021 a las 11:46, Grr (<gebbe...@gmail.com>) escribió:
>
> > Ken:
> > Thanks a lot for your code. I will try it
> >
> > I was researching that echo thing and yes, that's a terminal device
> driver
> > thing. More exactly, c_lflag of termios struct. Problem is I haven't
> found
> > yet where that is set in the serial terminal setup sequence
> >
> > El mar, 26 ene 2021 a las 11:28, Johnny Billquist (<b...@softjar.se>)
> > escribió:
> >
> >> On 2021-01-26 16:16, Ken Pettit wrote:
> >> > Grr,
> >> >
> >> > Yeah, in Nuttx, fgets, fgetc, etc. don't echo.  Even in Linux, the
> echo
> >> > is actually a function of the terminal, not the running program and
> >> > 'fgets'.
> >>
> >> It is actually not a function of the terminal, but the terminal (serial)
> >> device driver.
> >>
> >>    Johnny
> >>
> >> --
> >> Johnny Billquist                  || "I'm on a bus
> >>                                    ||  on a psychedelic trip
> >> email: b...@softjar.se             ||  Reading murder books
> >> pdp is alive!                     ||  tryin' to stay hip" - B. Idol
> >>
> >
>

Reply via email to