diff options
author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2025-07-11 22:59:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-11 22:59:19 +0200 |
commit | 88ac69f94ddbe172458c79f2a5e37b6704c606a2 (patch) | |
tree | 09a61dfe8627cfed751fc9c7f597436970be86bf /docs | |
parent | a103ff16f13b9c7761d0fb2ec9db68da08193ebf (diff) | |
download | luasystem-master.tar.gz luasystem-master.tar.bz2 luasystem-master.zip |
Diffstat (limited to '')
-rw-r--r-- | docs/classes/bitflags.html | 2 | ||||
-rw-r--r-- | docs/examples/compat.lua.html | 2 | ||||
-rw-r--r-- | docs/examples/flag_debugging.lua.html | 2 | ||||
-rw-r--r-- | docs/examples/password_input.lua.html | 2 | ||||
-rw-r--r-- | docs/examples/read.lua.html | 2 | ||||
-rw-r--r-- | docs/examples/readline.lua.html | 2 | ||||
-rw-r--r-- | docs/examples/spinner.lua.html | 2 | ||||
-rw-r--r-- | docs/examples/spiral_snake.lua.html | 2 | ||||
-rw-r--r-- | docs/examples/terminalsize.lua.html | 2 | ||||
-rw-r--r-- | docs/index.html | 2 | ||||
-rw-r--r-- | docs/modules/system.html | 15 | ||||
-rw-r--r-- | docs/topics/01-introduction.md.html | 2 | ||||
-rw-r--r-- | docs/topics/02-development.md.html | 2 | ||||
-rw-r--r-- | docs/topics/03-terminal.md.html | 2 | ||||
-rw-r--r-- | docs/topics/CHANGELOG.md.html | 15 | ||||
-rw-r--r-- | docs/topics/LICENSE.md.html | 2 |
16 files changed, 40 insertions, 18 deletions
diff --git a/docs/classes/bitflags.html b/docs/classes/bitflags.html index e11e39a..7637aeb 100644 --- a/docs/classes/bitflags.html +++ b/docs/classes/bitflags.html | |||
@@ -298,7 +298,7 @@ return <code>false</code> if the flags are checked. | |||
298 | </div> <!-- id="main" --> | 298 | </div> <!-- id="main" --> |
299 | <div id="about"> | 299 | <div id="about"> |
300 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 300 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
301 | <i style="float:right;">Last updated 2025-04-17 09:50:39 </i> | 301 | <i style="float:right;">Last updated 2025-07-11 22:55:05 </i> |
302 | </div> <!-- id="about" --> | 302 | </div> <!-- id="about" --> |
303 | </div> <!-- id="container" --> | 303 | </div> <!-- id="container" --> |
304 | </body> | 304 | </body> |
diff --git a/docs/examples/compat.lua.html b/docs/examples/compat.lua.html index ab4caab..ca4e489 100644 --- a/docs/examples/compat.lua.html +++ b/docs/examples/compat.lua.html | |||
@@ -112,7 +112,7 @@ | |||
112 | </div> <!-- id="main" --> | 112 | </div> <!-- id="main" --> |
113 | <div id="about"> | 113 | <div id="about"> |
114 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 114 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
115 | <i style="float:right;">Last updated 2025-04-17 09:50:39 </i> | 115 | <i style="float:right;">Last updated 2025-07-11 22:55:05 </i> |
116 | </div> <!-- id="about" --> | 116 | </div> <!-- id="about" --> |
117 | </div> <!-- id="container" --> | 117 | </div> <!-- id="container" --> |
118 | </body> | 118 | </body> |
diff --git a/docs/examples/flag_debugging.lua.html b/docs/examples/flag_debugging.lua.html index 3fd5cd7..dba4471 100644 --- a/docs/examples/flag_debugging.lua.html +++ b/docs/examples/flag_debugging.lua.html | |||
@@ -80,7 +80,7 @@ | |||
80 | </div> <!-- id="main" --> | 80 | </div> <!-- id="main" --> |
81 | <div id="about"> | 81 | <div id="about"> |
82 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 82 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
83 | <i style="float:right;">Last updated 2025-04-17 09:50:39 </i> | 83 | <i style="float:right;">Last updated 2025-07-11 22:55:05 </i> |
84 | </div> <!-- id="about" --> | 84 | </div> <!-- id="about" --> |
85 | </div> <!-- id="container" --> | 85 | </div> <!-- id="container" --> |
86 | </body> | 86 | </body> |
diff --git a/docs/examples/password_input.lua.html b/docs/examples/password_input.lua.html index 65d6e17..342b066 100644 --- a/docs/examples/password_input.lua.html +++ b/docs/examples/password_input.lua.html | |||
@@ -132,7 +132,7 @@ useful for reading secrets from the user. | |||
132 | </div> <!-- id="main" --> | 132 | </div> <!-- id="main" --> |
133 | <div id="about"> | 133 | <div id="about"> |
134 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 134 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
135 | <i style="float:right;">Last updated 2025-04-17 09:50:39 </i> | 135 | <i style="float:right;">Last updated 2025-07-11 22:55:05 </i> |
136 | </div> <!-- id="about" --> | 136 | </div> <!-- id="about" --> |
137 | </div> <!-- id="container" --> | 137 | </div> <!-- id="container" --> |
138 | </body> | 138 | </body> |
diff --git a/docs/examples/read.lua.html b/docs/examples/read.lua.html index 3e29b64..4995bda 100644 --- a/docs/examples/read.lua.html +++ b/docs/examples/read.lua.html | |||
@@ -143,7 +143,7 @@ sys.<span class="function-name">setnonblock</span>(<span class="global">io</span | |||
143 | </div> <!-- id="main" --> | 143 | </div> <!-- id="main" --> |
144 | <div id="about"> | 144 | <div id="about"> |
145 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 145 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
146 | <i style="float:right;">Last updated 2025-04-17 09:50:39 </i> | 146 | <i style="float:right;">Last updated 2025-07-11 22:55:05 </i> |
147 | </div> <!-- id="about" --> | 147 | </div> <!-- id="about" --> |
148 | </div> <!-- id="container" --> | 148 | </div> <!-- id="container" --> |
149 | </body> | 149 | </body> |
diff --git a/docs/examples/readline.lua.html b/docs/examples/readline.lua.html index 265021e..493de2c 100644 --- a/docs/examples/readline.lua.html +++ b/docs/examples/readline.lua.html | |||
@@ -549,7 +549,7 @@ sys.<span class="function-name">setconsoleflags</span>(<span class="global">io</ | |||
549 | </div> <!-- id="main" --> | 549 | </div> <!-- id="main" --> |
550 | <div id="about"> | 550 | <div id="about"> |
551 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 551 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
552 | <i style="float:right;">Last updated 2025-04-17 09:50:39 </i> | 552 | <i style="float:right;">Last updated 2025-07-11 22:55:05 </i> |
553 | </div> <!-- id="about" --> | 553 | </div> <!-- id="about" --> |
554 | </div> <!-- id="container" --> | 554 | </div> <!-- id="container" --> |
555 | </body> | 555 | </body> |
diff --git a/docs/examples/spinner.lua.html b/docs/examples/spinner.lua.html index 6141dd5..6e2d63a 100644 --- a/docs/examples/spinner.lua.html +++ b/docs/examples/spinner.lua.html | |||
@@ -137,7 +137,7 @@ sys.<span class="function-name">setnonblock</span>(<span class="global">io</span | |||
137 | </div> <!-- id="main" --> | 137 | </div> <!-- id="main" --> |
138 | <div id="about"> | 138 | <div id="about"> |
139 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 139 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
140 | <i style="float:right;">Last updated 2025-04-17 09:50:39 </i> | 140 | <i style="float:right;">Last updated 2025-07-11 22:55:05 </i> |
141 | </div> <!-- id="about" --> | 141 | </div> <!-- id="about" --> |
142 | </div> <!-- id="container" --> | 142 | </div> <!-- id="container" --> |
143 | </body> | 143 | </body> |
diff --git a/docs/examples/spiral_snake.lua.html b/docs/examples/spiral_snake.lua.html index 8432fb1..97d5f77 100644 --- a/docs/examples/spiral_snake.lua.html +++ b/docs/examples/spiral_snake.lua.html | |||
@@ -145,7 +145,7 @@ codes for moving the cursor around. | |||
145 | </div> <!-- id="main" --> | 145 | </div> <!-- id="main" --> |
146 | <div id="about"> | 146 | <div id="about"> |
147 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 147 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
148 | <i style="float:right;">Last updated 2025-04-17 09:50:39 </i> | 148 | <i style="float:right;">Last updated 2025-07-11 22:55:05 </i> |
149 | </div> <!-- id="about" --> | 149 | </div> <!-- id="about" --> |
150 | </div> <!-- id="container" --> | 150 | </div> <!-- id="container" --> |
151 | </body> | 151 | </body> |
diff --git a/docs/examples/terminalsize.lua.html b/docs/examples/terminalsize.lua.html index 610803b..d3486bb 100644 --- a/docs/examples/terminalsize.lua.html +++ b/docs/examples/terminalsize.lua.html | |||
@@ -110,7 +110,7 @@ sys.<span class="function-name">tcsetattr</span>(<span class="global">io</span>. | |||
110 | </div> <!-- id="main" --> | 110 | </div> <!-- id="main" --> |
111 | <div id="about"> | 111 | <div id="about"> |
112 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 112 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
113 | <i style="float:right;">Last updated 2025-04-17 09:50:39 </i> | 113 | <i style="float:right;">Last updated 2025-07-11 22:55:05 </i> |
114 | </div> <!-- id="about" --> | 114 | </div> <!-- id="about" --> |
115 | </div> <!-- id="container" --> | 115 | </div> <!-- id="container" --> |
116 | </body> | 116 | </body> |
diff --git a/docs/index.html b/docs/index.html index a4446a7..e901d08 100644 --- a/docs/index.html +++ b/docs/index.html | |||
@@ -142,7 +142,7 @@ | |||
142 | </div> <!-- id="main" --> | 142 | </div> <!-- id="main" --> |
143 | <div id="about"> | 143 | <div id="about"> |
144 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 144 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
145 | <i style="float:right;">Last updated 2025-04-17 09:50:39 </i> | 145 | <i style="float:right;">Last updated 2025-07-11 22:55:05 </i> |
146 | </div> <!-- id="about" --> | 146 | </div> <!-- id="about" --> |
147 | </div> <!-- id="container" --> | 147 | </div> <!-- id="container" --> |
148 | </body> | 148 | </body> |
diff --git a/docs/modules/system.html b/docs/modules/system.html index 6840b85..0a2447e 100644 --- a/docs/modules/system.html +++ b/docs/modules/system.html | |||
@@ -1051,7 +1051,7 @@ sequences will be buffered internally and returned one byte at a time. | |||
1051 | the character that was received (can be multi-byte), or a complete ANSI sequence</li> | 1051 | the character that was received (can be multi-byte), or a complete ANSI sequence</li> |
1052 | <li> | 1052 | <li> |
1053 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span> | 1053 | <span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span> |
1054 | the type of input: <code>"char"</code> for a single key, <code>"ansi"</code> for an ANSI sequence</li> | 1054 | the type of input: <code>"ctrl"</code> for 0-31 and 127 bytes, <code>"char"</code> for other UTF-8 characters, <code>"ansi"</code> for an ANSI sequence</li> |
1055 | </ol> | 1055 | </ol> |
1056 | <h3>Or</h3> | 1056 | <h3>Or</h3> |
1057 | <ol> | 1057 | <ol> |
@@ -1070,6 +1070,15 @@ sequences will be buffered internally and returned one byte at a time. | |||
1070 | 1070 | ||
1071 | 1071 | ||
1072 | 1072 | ||
1073 | <h3>Usage:</h3> | ||
1074 | <ul> | ||
1075 | <pre class="example"><span class="keyword">local</span> key, keytype = system.<span class="function-name">readansi</span>(<span class="number">5</span>) | ||
1076 | <span class="keyword">if</span> keytype == <span class="string">"char"</span> <span class="keyword">then</span> ... <span class="keyword">end</span> <span class="comment">-- printable character | ||
1077 | </span><span class="keyword">if</span> keytype ~= <span class="string">"char"</span> <span class="keyword">then</span> ... <span class="keyword">end</span> <span class="comment">-- non-printable character or sequence | ||
1078 | </span><span class="keyword">if</span> keytype == <span class="string">"ansi"</span> <span class="keyword">then</span> ... <span class="keyword">end</span> <span class="comment">-- a multi-byte sequence, but not a UTF8 character | ||
1079 | </span><span class="keyword">if</span> keytype ~= <span class="string">"ansi"</span> <span class="keyword">then</span> ... <span class="keyword">end</span> <span class="comment">-- a valid UTF8 character (which includes control characters) | ||
1080 | </span><span class="keyword">if</span> keytype == <span class="string">"ctrl"</span> <span class="keyword">then</span> ... <span class="keyword">end</span> <span class="comment">-- a single-byte ctrl character (0-31, 127)</span></pre> | ||
1081 | </ul> | ||
1073 | 1082 | ||
1074 | </dd> | 1083 | </dd> |
1075 | <dt> | 1084 | <dt> |
@@ -1079,7 +1088,7 @@ sequences will be buffered internally and returned one byte at a time. | |||
1079 | <dd> | 1088 | <dd> |
1080 | Reads a single byte from the console, with a timeout. | 1089 | Reads a single byte from the console, with a timeout. |
1081 | This function uses <code>fsleep</code> to wait until either a byte is available or the timeout is reached. | 1090 | This function uses <code>fsleep</code> to wait until either a byte is available or the timeout is reached. |
1082 | The sleep period is exponentially backing off, starting at 0.0125 seconds, with a maximum of 0.2 seconds. | 1091 | The sleep period is exponentially backing off, starting at 0.0125 seconds, with a maximum of 0.1 seconds. |
1083 | It returns immediately if a byte is available or if <code>timeout</code> is less than or equal to <code>0</code>.</p> | 1092 | It returns immediately if a byte is available or if <code>timeout</code> is less than or equal to <code>0</code>.</p> |
1084 | 1093 | ||
1085 | <p> Using <a href="../modules/system.html#readansi">system.readansi</a> is preferred over this function. Since this function can leave stray/invalid | 1094 | <p> Using <a href="../modules/system.html#readansi">system.readansi</a> is preferred over this function. Since this function can leave stray/invalid |
@@ -1509,7 +1518,7 @@ This function will sleep, without doing a busy-loop and wasting CPU cycles. | |||
1509 | </div> <!-- id="main" --> | 1518 | </div> <!-- id="main" --> |
1510 | <div id="about"> | 1519 | <div id="about"> |
1511 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 1520 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
1512 | <i style="float:right;">Last updated 2025-04-17 09:50:39 </i> | 1521 | <i style="float:right;">Last updated 2025-07-11 22:55:05 </i> |
1513 | </div> <!-- id="about" --> | 1522 | </div> <!-- id="about" --> |
1514 | </div> <!-- id="container" --> | 1523 | </div> <!-- id="container" --> |
1515 | </body> | 1524 | </body> |
diff --git a/docs/topics/01-introduction.md.html b/docs/topics/01-introduction.md.html index 5667e71..264aa71 100644 --- a/docs/topics/01-introduction.md.html +++ b/docs/topics/01-introduction.md.html | |||
@@ -84,7 +84,7 @@ independence.</p> | |||
84 | </div> <!-- id="main" --> | 84 | </div> <!-- id="main" --> |
85 | <div id="about"> | 85 | <div id="about"> |
86 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 86 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
87 | <i style="float:right;">Last updated 2025-04-17 09:50:39 </i> | 87 | <i style="float:right;">Last updated 2025-07-11 22:55:05 </i> |
88 | </div> <!-- id="about" --> | 88 | </div> <!-- id="about" --> |
89 | </div> <!-- id="container" --> | 89 | </div> <!-- id="container" --> |
90 | </body> | 90 | </body> |
diff --git a/docs/topics/02-development.md.html b/docs/topics/02-development.md.html index 2432c98..15efe55 100644 --- a/docs/topics/02-development.md.html +++ b/docs/topics/02-development.md.html | |||
@@ -84,7 +84,7 @@ pass locally, and do not rely on CI only.</p> | |||
84 | </div> <!-- id="main" --> | 84 | </div> <!-- id="main" --> |
85 | <div id="about"> | 85 | <div id="about"> |
86 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 86 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
87 | <i style="float:right;">Last updated 2025-04-17 09:50:39 </i> | 87 | <i style="float:right;">Last updated 2025-07-11 22:55:05 </i> |
88 | </div> <!-- id="about" --> | 88 | </div> <!-- id="about" --> |
89 | </div> <!-- id="container" --> | 89 | </div> <!-- id="container" --> |
90 | </body> | 90 | </body> |
diff --git a/docs/topics/03-terminal.md.html b/docs/topics/03-terminal.md.html index a7b600a..27772ac 100644 --- a/docs/topics/03-terminal.md.html +++ b/docs/topics/03-terminal.md.html | |||
@@ -220,7 +220,7 @@ For an example see <a href="../examples/password_input.lua.html"><code>examples/ | |||
220 | </div> <!-- id="main" --> | 220 | </div> <!-- id="main" --> |
221 | <div id="about"> | 221 | <div id="about"> |
222 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 222 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
223 | <i style="float:right;">Last updated 2025-04-17 09:50:39 </i> | 223 | <i style="float:right;">Last updated 2025-07-11 22:55:05 </i> |
224 | </div> <!-- id="about" --> | 224 | </div> <!-- id="about" --> |
225 | </div> <!-- id="container" --> | 225 | </div> <!-- id="container" --> |
226 | </body> | 226 | </body> |
diff --git a/docs/topics/CHANGELOG.md.html b/docs/topics/CHANGELOG.md.html index 8cd2966..9603abd 100644 --- a/docs/topics/CHANGELOG.md.html +++ b/docs/topics/CHANGELOG.md.html | |||
@@ -106,6 +106,19 @@ | |||
106 | <p><a name="Version_history"></a></p> | 106 | <p><a name="Version_history"></a></p> |
107 | <h2>Version history</h2> | 107 | <h2>Version history</h2> |
108 | 108 | ||
109 | <h3>version 0.6.3, released 11-Jul-2025</h3> | ||
110 | |||
111 | <ul> | ||
112 | <li>Fix: maximum key-delay, reduced from 0.2 to 0.1 seconds to reduce slugginess feel on some key presses. | ||
113 | See <a href="https://github.com/lunarmodules/luasystem/pull/69">#69</a>.</li> | ||
114 | <li>Fix: <code>readansi</code> now only reports printable chars as characters | ||
115 | See <a href="https://github.com/lunarmodules/luasystem/pull/70">#70</a>.</li> | ||
116 | <li>Fix: readkey now ignores Windows scancodes if received. | ||
117 | See <a href="https://github.com/lunarmodules/luasystem/pull/74">#74</a>.</li> | ||
118 | <li>Fix: readkey now passes errors on. | ||
119 | See <a href="https://github.com/lunarmodules/luasystem/pull/74">#74</a>.</li> | ||
120 | </ul> | ||
121 | |||
109 | <h3>version 0.6.2, released 15-Apr-2025</h3> | 122 | <h3>version 0.6.2, released 15-Apr-2025</h3> |
110 | 123 | ||
111 | <ul> | 124 | <ul> |
@@ -221,7 +234,7 @@ | |||
221 | </div> <!-- id="main" --> | 234 | </div> <!-- id="main" --> |
222 | <div id="about"> | 235 | <div id="about"> |
223 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 236 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
224 | <i style="float:right;">Last updated 2025-04-17 09:50:39 </i> | 237 | <i style="float:right;">Last updated 2025-07-11 22:55:05 </i> |
225 | </div> <!-- id="about" --> | 238 | </div> <!-- id="about" --> |
226 | </div> <!-- id="container" --> | 239 | </div> <!-- id="container" --> |
227 | </body> | 240 | </body> |
diff --git a/docs/topics/LICENSE.md.html b/docs/topics/LICENSE.md.html index 90bdaa3..c0b9b93 100644 --- a/docs/topics/LICENSE.md.html +++ b/docs/topics/LICENSE.md.html | |||
@@ -94,7 +94,7 @@ SOFTWARE.</p> | |||
94 | </div> <!-- id="main" --> | 94 | </div> <!-- id="main" --> |
95 | <div id="about"> | 95 | <div id="about"> |
96 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 96 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
97 | <i style="float:right;">Last updated 2025-04-17 09:50:39 </i> | 97 | <i style="float:right;">Last updated 2025-07-11 22:55:05 </i> |
98 | </div> <!-- id="about" --> | 98 | </div> <!-- id="about" --> |
99 | </div> <!-- id="container" --> | 99 | </div> <!-- id="container" --> |
100 | </body> | 100 | </body> |