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