window:clear()

This commit is contained in:
Kartik K. Agaram 2021-11-05 12:14:24 -07:00
parent 048abcfbc2
commit debe292277
1 changed files with 7 additions and 0 deletions

View File

@ -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}
};