something to consider with querying the terminal for capabilities / terminal size etc, is where there is no terminal actually connected at the time. this would cause it to hang or require timeouts or other complications. but i guess querying might only occur after user input. Again, as long as its all optional, people can apply what they like.
this is something i really love about NuttX. nice and lean baseline but so much discoverable behind kconfig options. again, i'll put together a basic proposal for ANSI support in NSH and see what people think of the implementation. On Tue, 18 Aug 2020 at 05:06, Gregory Nutt <spudan...@gmail.com> wrote: > A basic terminfo/termcaps could be very trivial > > > A more general solution would be handy but what is there really in the > > embedded world that doesn't support vt100? There more code there is, the > > more interesting ways it can go wrong :-) > > I have sometimes used cat /dev/ttyS0 on the host as a terminal. > > I seen some simple Linux terminals that do not support VT-100. > > The NuttX cu terminal does not support VT-100 commands. > > There are several. > > >