diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-12-25 11:35:50 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-12-25 11:35:50 -0800 |
commit | 1e63a579d72a76baf56239e76528ddd4d08d797c (patch) | |
tree | 9c4765c0bd15449fce03c135ce232f523074752d /README.md | |
parent | 5c1bf1aaff9d7a74e836f4c96532fa4908cc72a7 (diff) | |
download | teliva-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.md | 5 |
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). |