Skip to content

CLI background colorΒ #16

@adicl

Description

@adicl

I'm using the Alpine version under UNRAID and I have problems with the color of the text in the CLI.
Some of the text (usually debug messages) is displayed black on dark grey background (see attached screenshot) and therefore barely readable. After such a line is displayed also the color of the commands typed afterwards becomes black on dark grey.
Initially I thought that there is a problem with my specific asterisk configuration, or the TERMINAL settings or the Docker configurations....
After some hair pulling I realized that the culprit is the -W from the asterisk command line from docker-entrypoint.sh

if [ "$1" = "" ]; then
  COMMAND="/usr/sbin/asterisk -T -W -U ${ASTERISK_USER} -p -vvvdddf"
else

-W Display colored terminal text as if the background were white or otherwise light in color. Normally, terminal text is displayed as if the background were black or otherwise dark in color.

Given that normally the linux console has a black background I think that this setting is inconvenient for most of the people.
Could you please change this to -B instead or eventually make it configurable?
Of course, you already provided a nice mechanism to override the entire COMMAND, however maybe some people, just like me, will have difficulties to figure out from where the problem comes in the first place.

Thanks and keep up the good work!
asterisk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions