improve lcurses

This commit is contained in:
ruki
2019-03-17 20:45:44 +08:00
parent 70b9e43854
commit e84c9b2972
2 changed files with 6 additions and 2 deletions

View File

@@ -1,8 +1,8 @@
package = "ltui" package = "ltui"
version = "1.4-1" version = "1.5-1"
source = { source = {
url = "git://github.com/tboox/ltui", url = "git://github.com/tboox/ltui",
tag = "v1.4" tag = "v1.5"
} }
description = { description = {
detailed = [[ detailed = [[

View File

@@ -763,7 +763,9 @@ static int lc_pair_content(lua_State *L)
#ifdef COLORS #ifdef COLORS
LC_NUMBER2(COLORS, COLORS) LC_NUMBER2(COLORS, COLORS)
#endif #endif
#ifdef COLOR_PAIRS
LC_NUMBER2(COLOR_PAIRS, COLOR_PAIRS) LC_NUMBER2(COLOR_PAIRS, COLOR_PAIRS)
#endif
static int lc_COLOR_PAIR(lua_State *L) static int lc_COLOR_PAIR(lua_State *L)
{ {
@@ -2257,7 +2259,9 @@ static const luaL_Reg curseslib[] =
#ifdef COLORS #ifdef COLORS
{ "colors", lc_COLORS }, { "colors", lc_COLORS },
#endif #endif
#ifdef COLOR_PAIRS
{ "color_pairs", lc_COLOR_PAIRS }, { "color_pairs", lc_COLOR_PAIRS },
#endif
{ "color_pair", lc_COLOR_PAIR }, { "color_pair", lc_COLOR_PAIR },
/* termattrs */ /* termattrs */