summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-04-07 05:00:15 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-04-10 10:00:07 +0200
commit4da4b4df109e4ca958b5717a60de3ffb4f6900f4 (patch)
tree0b4a613fd375e004be8da255831b9bbc58e106dc /include
parent6da43a09a93773f877b27a0857db858fd636f18f (diff)
downloadbarebox-4da4b4df109e4ca958b5717a60de3ffb4f6900f4.tar.gz
barebox-4da4b4df109e4ca958b5717a60de3ffb4f6900f4.tar.xz
menu: add color fancy support
You can now use AINSI color in the display of the menu or menu_entry. As the length of the string is not any more the same as the display simplify the invertion display managemnent. We just now invert the fontground and backgound on the string itself as done in Kconfig. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/menu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/menu.h b/include/menu.h
index 6e7b555263..136fe61acd 100644
--- a/include/menu.h
+++ b/include/menu.h
@@ -61,6 +61,9 @@ struct menu {
int nb_entries;
int width;
+ char *display_buffer;
+ int display_buffer_size;
+
struct menu_entry *selected;
void *priv;
};