diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2008-03-17 23:12:15 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2008-03-17 23:12:15 -0500 |
commit | 3ba805b8375000f6cd462400bbaa11371f30beb9 (patch) | |
tree | 0b6663908599e1eabb0b6a599812e19419e3cbed | |
parent | e459f949963207928d487d0b7ee9fa766e58368e (diff) | |
download | luancurses-3ba805b8375000f6cd462400bbaa11371f30beb9.tar.gz luancurses-3ba805b8375000f6cd462400bbaa11371f30beb9.zip |
stupid ncurses... can't do ACS_ stuff the intelligent way, so put it off for now
-rw-r--r-- | src/strings.c | 13 |
1 files changed, 13 insertions, 0 deletions
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); + */ } |