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 :-)

(BTW; ctrl-L to clear the screen was one of the first things I added after
fixing backspace/delete....both of those drove me crazy).

Regards

Dave

On Mon, 17 Aug 2020, 15:51 Gregory Nutt, <spudan...@gmail.com> wrote:

>
> > I would suggest that you look at how this is handled in standard
> terminals. This works in the form
> > of escape sequence which give a code that the terminal can interpret as
> being a color. This would
> > make it available to applications in a standard form.
>
> Good point.  The GNU part of GNU/Linux devotes a lot of logic into
> managing terminals. Eg.
>
> https://www.gnu.org/software/termutils/manual/termcap-1.3/html_mono/termcap.html
> and https://linux.die.net/man/5/terminfo and
> https://pubs.opengroup.org/onlinepubs/007908799/xcurses/terminfo.html
> and etc...
>
> NuttX generally just hard codes VT-100 terminal types (or the
> almost-dentical ANSII terminal type).  But there are lots of others.
> Perhaps we should really be considering how we handle terminals in
> general not just color on or off?  That is really what the current
> discussion is about, terminal capabilities (termcaps) and
> customizations.  Maybe, as a start, we should consider a
> terminfo/termaps for monochrome vs. color only.  That would be a step in
> the Unix direction version yet-another-ad-hoc-config-setting.
>
>
>
>

Reply via email to