diff options
-rw-r--r-- | src/lcurseslib.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lcurseslib.c b/src/lcurseslib.c index 394cd84..5f2597e 100644 --- a/src/lcurseslib.c +++ b/src/lcurseslib.c @@ -102,10 +102,17 @@ static int Waddstr (lua_State *L) { } +static int Wclear (lua_State *L) { + lua_pushboolean(L, wclear(checkwin(L, 1))); + return 1; +} + + static const luaL_Reg curses_window_methods[] = { {"__tostring", W__tostring}, {"addstr", Waddstr}, + {"clear", Wclear}, {NULL, NULL} }; |