From 3ba805b8375000f6cd462400bbaa11371f30beb9 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Mon, 17 Mar 2008 23:12:15 -0500 Subject: stupid ncurses... can't do ACS_ stuff the intelligent way, so put it off for now --- src/strings.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/strings.c b/src/strings.c index 7c3bcdf..237fa75 100644 --- a/src/strings.c +++ b/src/strings.c @@ -49,6 +49,10 @@ static trans keys[] = { {"insert", KEY_IC}, }; +/* XXX: the ACS_ defines are actually just indexes into another internal array, + * which means that we can't use them as initializers. think of a better way + * to do this. */ +/* static trans chars[] = { {"block", ACS_BLOCK}, {"board", ACS_BOARD}, @@ -83,6 +87,7 @@ static trans chars[] = { {"urcorner", ACS_URCORNER}, {"vline", ACS_VLINE}, }; +*/ static const char* fn_keys[] = { "F0", "F1", "F2", "F3", "F4", "F5", "F6", "F7", @@ -162,11 +167,14 @@ int get_key_enum(const char* str) chtype get_char_enum(const char* str) { + /* int ret; ret = str2enum(chars, lengthof(chars), str); return ret == -1 ? (chtype)str[0] : ret; + */ + return str[0]; } const char* get_color_str(int tag) @@ -190,7 +198,10 @@ const char* get_key_str(int tag) const char* get_char_str(chtype tag) { + /* return enum2str(chars, lengthof(chars), tag); + */ + return NULL; } void each_color(table_cb cb, void* data) @@ -210,5 +221,7 @@ void each_key(table_cb cb, void* data) void each_char(table_cb cb, void* data) { + /* each_item(chars, lengthof(chars), cb, data); + */ } -- cgit v1.2.3-54-g00ecf