aboutsummaryrefslogtreecommitdiffstats
path: root/src/curses.c
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-03-17 22:45:15 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-03-17 22:45:15 -0500
commit253e6f0a89bb2b857627b46d20ad93c3b27ade22 (patch)
treeba76c56815297a3bd4e7b3504e743e240e90fc3c /src/curses.c
parentb9899f854633dcec67c0f7ce0558ba79bf945e4a (diff)
downloadluancurses-253e6f0a89bb2b857627b46d20ad93c3b27ade22.tar.gz
luancurses-253e6f0a89bb2b857627b46d20ad93c3b27ade22.zip
add the addch defines for line drawing characters
Diffstat (limited to 'src/curses.c')
-rw-r--r--src/curses.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/curses.c b/src/curses.c
index 08331ea..495e4bb 100644
--- a/src/curses.c
+++ b/src/curses.c
@@ -89,12 +89,6 @@ static int get_pos(lua_State* L, pos* p)
return 1;
}
-static chtype get_char(const char* str)
-{
- /* add the ACS_ defines here */
- return str[0];
-}
-
static int get_char_attr(lua_State* L, int stack_pos)
{
int mode = A_NORMAL;
@@ -312,7 +306,7 @@ static int l_addch(lua_State* L)
chtype ch;
is_mv = get_pos(L, &p);
- ch = get_char(luaL_checklstring(L, 1, &l));
+ ch = get_char_enum(luaL_checklstring(L, 1, &l));
if (lua_istable(L, 2)) {
mode = get_char_attr(L, 2);
color = get_char_color(L, 2);
@@ -413,7 +407,7 @@ static int l_insch(lua_State* L)
chtype ch;
is_mv = get_pos(L, &p);
- ch = get_char(luaL_checklstring(L, 1, &l));
+ ch = get_char_enum(luaL_checklstring(L, 1, &l));
if (lua_istable(L, 2)) {
mode = get_char_attr(L, 2);
color = get_char_color(L, 2);