about summary refs log tree commit diff stats
path: root/src/lualib.h
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-05 10:26:47 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-11-05 10:30:07 -0700
commit8552ad4ced8ccd0cf5276bf6d03f0c43028be8af (patch)
tree1de9c8d61dac52cdb11e9103bbb197bf85f4f99c /src/lualib.h
parent37b05c2957657ca618dfc183a909705b32b7adc5 (diff)
downloadteliva-8552ad4ced8ccd0cf5276bf6d03f0c43028be8af.tar.gz
starting on curses library
First piece of working new vocabulary:
  print(curses:cols())

Just pulling in code from lcurses for the most part. But I'm trying to
understand its internals as I gradually add them in, after my more blunt
first approach of packaging up lcurses/ext failed.

Overall plan for Teliva's API:
- start out with a 'curses' library that does what people who are used
  to ncurses/lcurses expect.
- over time create a more opinionated library called 'screen' or
  'window' or something.
Diffstat (limited to 'src/lualib.h')
-rw-r--r--src/lualib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lualib.h b/src/lualib.h
index 469417f..02924dd 100644
--- a/src/lualib.h
+++ b/src/lualib.h
@@ -33,6 +33,9 @@ LUALIB_API int (luaopen_string) (lua_State *L);
 #define LUA_MATHLIBNAME	"math"
 LUALIB_API int (luaopen_math) (lua_State *L);
 
+#define LUA_CURSESLIBNAME	"curses"
+LUALIB_API int (luaopen_curses) (lua_State *L);
+
 #define LUA_DBLIBNAME	"debug"
 LUALIB_API int (luaopen_debug) (lua_State *L);