Hi Matthias,
On 1/14/25 9:21 AM, Matthias Klein via lists.yoctoproject.org wrote:
[You don't often get email from
matthias.klein=optimeas...@lists.yoctoproject.org. Learn why this is important
at https://aka.ms/LearnAboutSenderIdentification ]
Hello,
I have the problem that in the serial console and the SSH shell escape
sequences are displayed instead of colors.
This is not nice, but much worse is that I have to end every command like
“nmcli con show” with “q” to get back into the shell.
Similar to if I had started it with “| less”. See the screenshot in the appendix
However, if I start the command with “NO_COLOR=true nmcli con show”, the output
appears correctly without the “less mode”.
I have already tried various terminal settings in the SSH client.
But I think the problem is in the Yocto image itself, and not on the client
side.
The environment variable TERM is set to “xterm”. But I also tried
“xterm-color”, which did not change anything.
Does anyone have an idea what the problem could be, or what I could look for?
I assume you are running busybox?
We had the same issue and fixed it by adding this patch to busybox:
https://git.embedded.cherry.de/yocto-layers/meta-cherry-es.git/tree/meta-extended/recipes-core/busybox/busybox/less_raw.cfg
Does that work for you?
I unfortunately didn't take the time to look into how to contribute this
to OE-Core so other people benefit from it. I assumed we may not want to
have it always enabled but maybe that's fine. I thought maybe we want
this behind a DISTRO_FEATURES such as NO_COLOR but haven't really put
much effort in looking for a solution.
Cheers,
Quentin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64546): https://lists.yoctoproject.org/g/yocto/message/64546
Mute This Topic: https://lists.yoctoproject.org/mt/110604318/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-