Re: Color ANSI support in nsh

2020-08-17 Thread Dave Marples
Guys, chill, it was a joke :-) of course colour has utility for improved cognition. Back in the day I remember discussions about if colour terminals would ever take off cos folks couldn't see the point of them. That argument got resolved. Colour certainly has utility. Small size does too. If we ca

Re: Color ANSI support in nsh

2020-08-17 Thread Christian Catchpole
Thanks everyone. There's obviously different levels of how far you take it. And not just colour, but simple things like "clear screen on NSH start", which I found useful for one use case at least. Having commands colour aware as they are in linux is perhaps overkill at this stage. As a minimum I

Re: Color ANSI support in nsh

2020-08-17 Thread Maciej Wójcik
There is a debug menu of NuttX configuration in which you can enable different levels of logging. You could add an option to differentiate colours based on debug level. I think this would be both great and doable. Then if it would be accepted, expose colorful logs to applications somehow. I wasn't

Re: Pre-check flow

2020-08-17 Thread Ramya N
Hi Brennan, Can you please share your comments regarding the build time for container as shared in the previous mail. Best Regards, Ramya N From: Ramya N Sent: 12 August 2020 20:37 To: dev@nuttx.apache.org Subject: Re: Pre-check flow __

Re: Color ANSI support in nsh

2020-08-17 Thread Alan Carvalho de Assis
Hi Maciej, I completely agree with it, I was only saying there is an alternative. I also want native support to have Color support in the terminal. This is my suggestion, it should be enabled by default, but disabled by default if CONFIG_DEFAULT_SMALL is selected. What do you think? BR, Alan

Re: Color ANSI support in nsh

2020-08-17 Thread Gregory Nutt
This is my suggestion, it should be enabled by default, but disabled by default if CONFIG_DEFAULT_SMALL is selected. What do you think? I would prefer to see it just disabled by default.

Re: Color ANSI support in nsh

2020-08-17 Thread Matias N.
Having the ability to display color on the console is really useful to provide easy to read output in many scenarios (e.g. test with OK/ERROR). But I agree it should be disabled by default and not overly complicate things. I would suggest that you look at how this is handled in standard termina

Re: Color ANSI support in nsh

2020-08-17 Thread Gregory Nutt
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 d

Re: Pre-check flow

2020-08-17 Thread Brennan Ashton
Ramya, Apologies, for the delay. I think what would make the most sense to start just updating the existing Docker file to include a new build stage for the toolchain and open a PR. We can then look at the build time and move things around a bit if we need to. One of the things that we can do is

Re: Color ANSI support in nsh

2020-08-17 Thread Dave Marples
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/deleteboth of th

Re: Color ANSI support in nsh

2020-08-17 Thread Gregory Nutt
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 termi

Re: new documentation

2020-08-17 Thread Matias N.
Hi everyone, just wanted to let you know in case it was lost in the sea of github notification emails that today I undraft the "new documentation" PR so that you can start reviewing it. Please have a look at the PR description to get a better idea of the changes and go into the link included th

Re: new documentation

2020-08-17 Thread Nathan Hartman
On Mon, Aug 17, 2020 at 4:28 PM Matias N. wrote: > Hi everyone, > > just wanted to let you know in case it was lost in the sea of github > notification emails that today I undraft the > "new documentation" PR so that you can start reviewing it. Please have a > look at the PR description to get a

Re: Color ANSI support in nsh

2020-08-17 Thread Christian Catchpole
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

Re: Color ANSI support in nsh

2020-08-17 Thread Matias N.
I really liked your telemetry app with colored output you shown on the video. On Mon, Aug 17, 2020, at 20:47, Christian Catchpole wrote: > something to consider with querying the terminal for capabilities / > terminal size etc, is where there is no terminal actually connected at the > time. this

Re: Color ANSI support in nsh

2020-08-17 Thread Alan Carvalho de Assis
I liked it to! Should be nice to have some "text bar" widgets too, like we have in the alsamixer ;-) BR, Alan On 8/17/20, Matias N. wrote: > I really liked your telemetry app with colored output you shown on the > video. > > On Mon, Aug 17, 2020, at 20:47, Christian Catchpole wrote: >> somethi

Re: Color ANSI support in nsh

2020-08-17 Thread Christian Catchpole
Thanks Matias! I've dropped the code into a gist if anyone is interested in using it. It's c++ but of course wouldn't take much to turn in a C with structs. and of course modify it in other ways to your own needs. You simply call one of these methods.. void log(const char * source, const char *

Build failed in Jenkins: NuttX-Nightly-Build #254

2020-08-17 Thread Apache Jenkins Server
See Changes: -- Started by timer Running as SYSTEM [EnvInject] - Loading node environment variables. [EnvInject] - Preparing an environment for the build. [EnvInject] - Keeping Jenkin

Re: [IMPORTANT] - Migration to ci-builds.a.o

2020-08-17 Thread Brennan Ashton
Dave, Our INFRA ticket is still waiting so I cannot migrate the job. https://issues.apache.org/jira/browse/INFRA-20687 Thanks, Brennan On Fri, Aug 14, 2020, 1:27 PM Dave Fisher wrote: > You will find this page helpful: > https://cwiki.apache.org/confluence/display/INFRA/Migrating+jobs+from+Jen