console: move global.allow_color handling to C code
We have global.allow_color, but this is limited to the environment
only. Move creation and handling of this variable to C code so that
we can add support for colored output to commands/console controlled
by the same variable.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent e18cc5b commit 7e879bd678fa1ac8b1b0bd4e7b9c845b0e967da2
@Sascha Hauer Sascha Hauer authored on 20 Feb 2018
Showing 6 changed files
View
common/Kconfig
View
common/console_common.c
View
defaultenv/defaultenv-2-base/bin/init
View
defaultenv/defaultenv-2-base/data/ansi-colors
View
defaultenv/defaultenv-2-base/init/ps1
View
include/console.h