From 1e63a579d72a76baf56239e76528ddd4d08d797c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 25 Dec 2021 11:35:50 -0800 Subject: 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. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'README.md') 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). -- cgit 1.4.1-2-gfad0