about summary refs log tree commit diff stats
path: root/README.md
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-12-25 11:35:50 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-12-25 11:35:50 -0800
commit1e63a579d72a76baf56239e76528ddd4d08d797c (patch)
tree9c4765c0bd15449fce03c135ce232f523074752d /README.md
parent5c1bf1aaff9d7a74e836f4c96532fa4908cc72a7 (diff)
downloadteliva-1e63a579d72a76baf56239e76528ddd4d08d797c.tar.gz
drop stdin/stdout/stderr and Lua default files
This isn't necessarily for sandboxing, but they don't really work right
now in the presence of ncurses, and it seems better to not include
broken stuff. Maybe we can get them to coexist with ncurses down the
road.
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index 26581d3..1773ac1 100644
--- a/README.md
+++ b/README.md
@@ -132,6 +132,11 @@ libraries. However, a few things are different from conventional Lua:
   effectively:
   - `os.execute`
   - `io.popen`
+* Some functions are disabled because they don't seem to make sense in an
+  ncurses environment. This includes the Lua notions of default files, which
+  start out as stdin/stdout.
+  - `io.input`, `io.read`
+  - `io.output`, `io.write`, `io.flush`
 * Some functions in lcurses have [additional smarts](https://github.com/lcurses/lcurses/blob/master/lib/curses.lua).
   Teliva is [consistent with the underlying ncurses](https://github.com/akkartik/teliva/blob/main/src/lcurses/curses.lua).