All of lore.kernel.org
 help / color / mirror / Atom feed
* Shell not processing color escape codes
@ 2015-01-28 21:56 Moore, Thomas (FtWorth)
  2015-01-29  2:30 ` ChenQi
  0 siblings, 1 reply; 5+ messages in thread
From: Moore, Thomas (FtWorth) @ 2015-01-28 21:56 UTC (permalink / raw)
  To: yocto

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

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


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Shell not processing color escape codes
  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)
  0 siblings, 1 reply; 5+ messages in thread
From: ChenQi @ 2015-01-29  2:30 UTC (permalink / raw)
  To: Moore, Thomas (FtWorth), yocto

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

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: 3152 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Shell not processing color escape codes
  2015-01-29  2:30 ` ChenQi
@ 2015-01-29  3:01   ` Moore, Thomas (FtWorth)
  2015-01-29  3:21     ` ChenQi
  0 siblings, 1 reply; 5+ messages in thread
From: Moore, Thomas (FtWorth) @ 2015-01-29  3:01 UTC (permalink / raw)
  To: ChenQi, yocto

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

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: 4562 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Shell not processing color escape codes
  2015-01-29  3:01   ` Moore, Thomas (FtWorth)
@ 2015-01-29  3:21     ` ChenQi
  2015-01-29  3:32       ` Moore, Thomas (FtWorth)
  0 siblings, 1 reply; 5+ messages in thread
From: ChenQi @ 2015-01-29  3:21 UTC (permalink / raw)
  To: Moore, Thomas (FtWorth), yocto

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Shell not processing color escape codes
  2015-01-29  3:21     ` ChenQi
@ 2015-01-29  3:32       ` Moore, Thomas (FtWorth)
  0 siblings, 0 replies; 5+ messages in thread
From: Moore, Thomas (FtWorth) @ 2015-01-29  3:32 UTC (permalink / raw)
  To: ChenQi, yocto

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

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@windriver.com]
Sent: Wednesday, January 28, 2015 9:21 PM
To: Moore, Thomas (FtWorth); yocto@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@windriver.com]
Sent: Wednesday, January 28, 2015 8:31 PM
To: Moore, Thomas (FtWorth); yocto@yoctoproject.org<mailto: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: 7187 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-01-29  3:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2015-01-29  3:32       ` Moore, Thomas (FtWorth)

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.