aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2025-04-04 15:58:07 +0200
committerThijs Schreijer <thijs@thijsschreijer.nl>2025-04-07 10:51:58 +0200
commit96fb7f1608e00d6f8ceb2a5d9a90483e92fe4e3a (patch)
tree26d279f7f9ea504220fd8c831a7d5f4985d124c6
parentefb8ca600413c4cc70985e9a93aa55ac581134a7 (diff)
downloadluasystem-96fb7f1608e00d6f8ceb2a5d9a90483e92fe4e3a.tar.gz
luasystem-96fb7f1608e00d6f8ceb2a5d9a90483e92fe4e3a.tar.bz2
luasystem-96fb7f1608e00d6f8ceb2a5d9a90483e92fe4e3a.zip
added changelog entry
-rw-r--r--CHANGELOG.md7
-rw-r--r--doc_topics/03-terminal.md4
2 files changed, 6 insertions, 5 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2fd09d1..c617db5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -30,6 +30,9 @@ The scope of what is covered by the version number excludes:
30### version 0.6.0, unreleased 30### version 0.6.0, unreleased
31 31
32- Fix: when sleep returns an error, pass that on in `readkey`. 32- Fix: when sleep returns an error, pass that on in `readkey`.
33- Feat: added `detachfds` which will create separate file descriptions for `stdout`
34 and `stderr` to ensure that related settings (eg. non-blocking flag) will not be shared
35 amongst those streams and `stdin`.
33 36
34### version 0.5.1, released 12-Mar-2025 37### version 0.5.1, released 12-Mar-2025
35 38
@@ -42,12 +45,12 @@ The scope of what is covered by the version number excludes:
42- Feat: allow passing in a sleep function to `readkey` and `readansi` 45- Feat: allow passing in a sleep function to `readkey` and `readansi`
43- Fix: NetBSD fix compilation, undeclared directives 46- Fix: NetBSD fix compilation, undeclared directives
44- Refactor: random bytes; remove deprecated API usage on Windows, move to 47- Refactor: random bytes; remove deprecated API usage on Windows, move to
45 binary api instead of /dev/urandom file on linux and bsd 48 binary api instead of `/dev/urandom` file on linux and bsd
46 49
47### version 0.4.5, released 18-Dec-2024 50### version 0.4.5, released 18-Dec-2024
48 51
49- Fix: suppress a warning when building with clang 52- Fix: suppress a warning when building with clang
50- Fix: do not rely on luaconf.h to include limits.h, fixes builds with latest LuaJIT (#38). 53- Fix: do not rely on `luaconf.h` to include `limits.h`, fixes builds with latest LuaJIT (#38).
51 54
52### version 0.4.4, released 03-Sep-2024 55### version 0.4.4, released 03-Sep-2024
53 56
diff --git a/doc_topics/03-terminal.md b/doc_topics/03-terminal.md
index 3705cce..a5341d6 100644
--- a/doc_topics/03-terminal.md
+++ b/doc_topics/03-terminal.md
@@ -102,13 +102,11 @@ On Posix the traditional file approach is used, which:
102 102
103To use non-blocking input here's how to set it up: 103To use non-blocking input here's how to set it up:
104 104
105 -- Detach stdin/out/err; to get their own independent file descriptions
106 sys.detachfds()
107
108 -- setup Windows console to disable echo and line input (not required since _getwchar is used, just for consistency) 105 -- setup Windows console to disable echo and line input (not required since _getwchar is used, just for consistency)
109 sys.setconsoleflags(io.stdin, sys.getconsoleflags(io.stdin) - sys.CIF_ECHO_INPUT - sys.CIF_LINE_INPUT) 106 sys.setconsoleflags(io.stdin, sys.getconsoleflags(io.stdin) - sys.CIF_ECHO_INPUT - sys.CIF_LINE_INPUT)
110 107
111 -- setup Posix by disabling echo, canonical mode, and making non-blocking 108 -- setup Posix by disabling echo, canonical mode, and making non-blocking
109 sys.detachfds() -- ensure stdin/out/err have their own file descriptions
112 local of_attr = sys.tcgetattr(io.stdin) 110 local of_attr = sys.tcgetattr(io.stdin)
113 sys.tcsetattr(io.stdin, sys.TCSANOW, { 111 sys.tcsetattr(io.stdin, sys.TCSANOW, {
114 lflag = of_attr.lflag - sys.L_ICANON - sys.L_ECHO, 112 lflag = of_attr.lflag - sys.L_ICANON - sys.L_ECHO,