diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-02-20 08:20:20 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-02-22 08:28:46 +0100 |
commit | 7e879bd678fa1ac8b1b0bd4e7b9c845b0e967da2 (patch) | |
tree | 6a7004cc79bda34e3e46bcb53292247d13849913 /include/console.h | |
parent | e18cc5b7e9ce0ac71f0e00f166ca2e2afcc3f466 (diff) | |
download | barebox-7e879bd678fa1ac8b1b0bd4e7b9c845b0e967da2.tar.gz barebox-7e879bd678fa1ac8b1b0bd4e7b9c845b0e967da2.tar.xz |
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>
Diffstat (limited to 'include/console.h')
-rw-r--r-- | include/console.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h index 724168e07c..a8b2663a4c 100644 --- a/include/console.h +++ b/include/console.h @@ -94,4 +94,6 @@ void pbl_set_putc(void (*putcf)(void *ctx, int c), void *ctx); static inline void pbl_set_putc(void (*putcf)(void *ctx, int c), void *ctx) {} #endif +bool console_allow_color(void); + #endif |