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:
parent
56f11e7524
commit
ada305a3be
3 changed files with 48 additions and 20 deletions
|
@ -33,8 +33,6 @@
|
|||
#ifndef __CTK_CONSOLE_H__
|
||||
#define __CTK_CONSOLE_H__
|
||||
|
||||
#include <curses.h>
|
||||
|
||||
#define cputc console_cputc
|
||||
#define cputs console_cputs
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue