All of lore.kernel.org
 help / color / mirror / Atom feed
From: ChenQi <Qi.Chen@windriver.com>
To: "Moore, Thomas (FtWorth)" <Thomas.Moore2@ATK.COM>,
	"yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Shell not processing color escape codes
Date: Thu, 29 Jan 2015 11:21:27 +0800	[thread overview]
Message-ID: <54C9A737.2020301@windriver.com> (raw)
In-Reply-To: <7B6FE55CD594D7478CED8A39DF3BFC0A5E741769@UT40SVCWEM001.atk.com>

[-- Attachment #1: Type: text/plain, Size: 1499 bytes --]

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
>


[-- Attachment #2: Type: text/html, Size: 5933 bytes --]

  reply	other threads:[~2015-01-29  3:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-28 21:56 Shell not processing color escape codes Moore, Thomas (FtWorth)
2015-01-29  2:30 ` ChenQi
2015-01-29  3:01   ` Moore, Thomas (FtWorth)
2015-01-29  3:21     ` ChenQi [this message]
2015-01-29  3:32       ` Moore, Thomas (FtWorth)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54C9A737.2020301@windriver.com \
    --to=qi.chen@windriver.com \
    --cc=Thomas.Moore2@ATK.COM \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.