[yocto] Shell not processing color escape codes
Moore, Thomas (FtWorth)
Thomas.Moore2 at ATK.COM
Wed Jan 28 19:32:06 PST 2015
Oops. I was running an older version of the image. The new version of the image does have the GNU less command and it works as expected.
Thanks,
Thomas
From: ChenQi [mailto:Qi.Chen at windriver.com]
Sent: Wednesday, January 28, 2015 9:21 PM
To: Moore, Thomas (FtWorth); yocto at yoctoproject.org
Subject: Re: [yocto] Shell not processing color escape codes
That's a little strange. The `less' command you are using should be from the less package.
It has higher priority than that from busybox.
ALTERNATIVE_${PN} = "less"
ALTERNATIVE_PRIORITY = "100"
The priority from busybox is "50".
Regards,
Chen Qi
On 01/29/2015 11:01 AM, Moore, Thomas (FtWorth) wrote:
I added less to my IMAGE_INSTALL, but it looks like I still have the busybox version in my image. How might I go about forcing the use of the standard less?
Thomas
From: ChenQi [mailto:Qi.Chen at windriver.com]
Sent: Wednesday, January 28, 2015 8:31 PM
To: Moore, Thomas (FtWorth); yocto at yoctoproject.org<mailto:yocto at yoctoproject.org>
Subject: Re: [yocto] Shell not processing color escape codes
On 01/29/2015 05:56 AM, Moore, Thomas (FtWorth) wrote:
Hello,
In my image, I've included systemd. I've noticed that when running the systemctl command, the shell (/bin/sh) is not processing the color escape codes. Here's an example of what it looks like:
[[1;39m82 loaded units listed.[[0m Pass -all to see loaded but inactive units, too.
Any suggestions on how I can either get the shell to process the escape codes or prevent systemctl from generating them?
Thanks,
Thomas
1. Install 'less'
2. append '--no-pager' to commands
There's related a bug on bugzilla.
https://bugzilla.yoctoproject.org/show_bug.cgi?id=5723
Regards,
Chen Qi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150129/b1c04e67/attachment.html>
More information about the yocto
mailing list