From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id F1809E0080C; Wed, 28 Jan 2015 18:30:51 -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: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.146.13 listed in list.dnswl.org] Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6C5F0E006AF for ; Wed, 28 Jan 2015 18:30:45 -0800 (PST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.9/8.14.5) with ESMTP id t0T2Uh4v014322 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 28 Jan 2015 18:30:43 -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 18:30:43 -0800 Message-ID: <54C99B51.2050600@windriver.com> Date: Thu, 29 Jan 2015 10:30:41 +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> In-Reply-To: <7B6FE55CD594D7478CED8A39DF3BFC0A5E7416E7@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 02:30:52 -0000 Content-Type: multipart/alternative; boundary="------------080604000708080600060006" --------------080604000708080600060006 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 8bit 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 --------------080604000708080600060006 Content-Type: text/html; charset="windows-1252" Content-Transfer-Encoding: 8bit
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
--------------080604000708080600060006--