From: Denis Kenzior <denkenz@gmail.com>
To: iwd@lists.01.org
Subject: Re: how to disable colorized/grey output from iwctl commands
Date: Mon, 09 Mar 2020 22:47:08 -0500 [thread overview]
Message-ID: <5255da5d-9068-8629-e4b9-2bb74150d8d8@gmail.com> (raw)
In-Reply-To: <CAG17S_NQbJEQdv6twFogVoZ7gc__QNQXwy48qjyHMckGPEVjaA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1297 bytes --]
Hi Keith,
On 3/8/20 8:35 AM, KeithG wrote:
> I am trying to move to connman/iwd from netctl on a RPi. It currently
> has a PHP based UI to display the info and allow connections, etc.
> Connmanctl commands respond with text (no control characters, no
> colorization) iwdctl responds with text with control characters. If I
connman client does not use special ANSI codes, iwctl does.
> use this command::
> iwctl station wlan0 get-networks
> I get a response which looks like clear txt in my linux terminal
> connected by ssh, but it has control characters indicating which network
> is connected and the signal strength stars are all present and are
> either full brightness of grey depending on the signal. THis makes it
It should be quite straightforward to filter the ANSI escape sequences
out. See https://en.wikipedia.org/wiki/ANSI_escape_code
> challenging to feed this into php to be displayed in a browser... Is
> there a hidden flag to turn this off? Can this be added? If there are
> other suggestions on how to best deal with this, I am soliciting
> advice... What I get is this in php:
Right now there's no flag in iwctl to turn colorization off. Should be
straightforward to add though. Patches are always welcome.
Regards,
-Denis
prev parent reply other threads:[~2020-03-10 3:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-08 13:35 how to disable colorized/grey output from iwctl commands KeithG
2020-03-10 3:47 ` Denis Kenzior [this message]
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=5255da5d-9068-8629-e4b9-2bb74150d8d8@gmail.com \
--to=denkenz@gmail.com \
--cc=iwd@lists.01.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox