about summary refs log tree commit diff stats
path: root/src/linit.c
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/linit.c
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/linit.c')
-rw-r--r--src/linit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/linit.c b/src/linit.c
index c1f90df..6211f39 100644
--- a/src/linit.c
+++ b/src/linit.c
@@ -22,6 +22,7 @@ static const luaL_Reg lualibs[] = {
   {LUA_OSLIBNAME, luaopen_os},
   {LUA_STRLIBNAME, luaopen_string},
   {LUA_MATHLIBNAME, luaopen_math},
+  {LUA_CURSESLIBNAME, luaopen_curses},
   {LUA_DBLIBNAME, luaopen_debug},
   {NULL, NULL}
 };