ctk-curses: Introduce CTK-specific color names

Since ncurses also defines COLOR_BLACK and friends, and we want
to avoid including curses.h in contiki-conf.h, define CTK_COLOR_*
constants and map them to curses colors in ctk-curses.c.
This commit is contained in:
François Revol 2013-03-26 11:37:10 +01:00
parent 56f11e7524
commit ada305a3be
3 changed files with 48 additions and 20 deletions

View file

@ -33,8 +33,6 @@
#ifndef __CTK_CONSOLE_H__
#define __CTK_CONSOLE_H__
#include <curses.h>
#define cputc console_cputc
#define cputs console_cputs