From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 86AE1E00827; Wed, 28 Jan 2015 19:21:40 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.1.11 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E1571E00753 for ; Wed, 28 Jan 2015 19:21:30 -0800 (PST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.14.9/8.14.5) with ESMTP id t0T3LS5E021481 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 28 Jan 2015 19:21:28 -0800 (PST) Received: from [128.224.162.226] (128.224.162.226) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.174.1; Wed, 28 Jan 2015 19:21:28 -0800 Message-ID: <54C9A737.2020301@windriver.com> Date: Thu, 29 Jan 2015 11:21:27 +0800 From: ChenQi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: "Moore, Thomas (FtWorth)" , "yocto@yoctoproject.org" References: <7B6FE55CD594D7478CED8A39DF3BFC0A5E7416E7@UT40SVCWEM001.atk.com> <54C99B51.2050600@windriver.com> <7B6FE55CD594D7478CED8A39DF3BFC0A5E741769@UT40SVCWEM001.atk.com> In-Reply-To: <7B6FE55CD594D7478CED8A39DF3BFC0A5E741769@UT40SVCWEM001.atk.com> X-Originating-IP: [128.224.162.226] Subject: Re: Shell not processing color escape codes X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2015 03:21:40 -0000 Content-Type: multipart/alternative; boundary="------------030901090907000909040407" --------------030901090907000909040407 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 8bit 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@windriver.com] > *Sent:* Wednesday, January 28, 2015 8:31 PM > *To:* Moore, Thomas (FtWorth); yocto@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 > --------------030901090907000909040407 Content-Type: text/html; charset="windows-1252" Content-Transfer-Encoding: 8bit
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@windriver.com]
Sent: Wednesday, January 28, 2015 8:31 PM
To: Moore, Thomas (FtWorth); yocto@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


--------------030901090907000909040407--