diff options
author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2025-03-02 19:45:04 +0100 |
---|---|---|
committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2025-03-02 19:50:39 +0100 |
commit | 9318a7dc9f7def35a2e9d85ccffe63c06950be09 (patch) | |
tree | 945278ce1ce56e225289204f13ac8528264bbb92 /docs/topics/03-terminal.md.html | |
parent | 2981db32130b30c9b12e7347bfdbe2e7584e9274 (diff) | |
download | luasystem-0.5.0.tar.gz luasystem-0.5.0.tar.bz2 luasystem-0.5.0.zip |
Release v0.5.0v0.5.0
Diffstat (limited to 'docs/topics/03-terminal.md.html')
-rw-r--r-- | docs/topics/03-terminal.md.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/topics/03-terminal.md.html b/docs/topics/03-terminal.md.html index 6471a30..8c45d6e 100644 --- a/docs/topics/03-terminal.md.html +++ b/docs/topics/03-terminal.md.html | |||
@@ -202,10 +202,10 @@ sys.<span class="function-name">tcsetattr</span>(<span class="global">io</span>. | |||
202 | sys.<span class="function-name">setnonblock</span>(<span class="global">io</span>.stdin, <span class="keyword">true</span>) | 202 | sys.<span class="function-name">setnonblock</span>(<span class="global">io</span>.stdin, <span class="keyword">true</span>) |
203 | </pre> | 203 | </pre> |
204 | 204 | ||
205 | <p>Both functions require a timeout to be provided which allows for proper asynchronous | 205 | <p>Both <code>readkey</code> and <code>readansi</code> require a timeout to be provided which allows for proper asynchronous |
206 | code to be written. Since the underlying sleep method used is <a href="../modules/system.html#sleep">system.sleep</a>, just patching | 206 | code to be written. The underlying sleep method to use can be provided, and defaults to <a href="../modules/system.html#sleep">system.sleep</a>. |
207 | that function with a coroutine based yielding one should be all that is needed to make | 207 | Just passing a coroutine enabled sleep method should be all that is needed to make |
208 | the result work with asynchroneous coroutine schedulers.</p> | 208 | the result work with asynchroneous coroutine schedulers. Alternatively just patch <a href="../modules/system.html#sleep">system.sleep</a>.</p> |
209 | 209 | ||
210 | <h3>3.3.2 Blocking input</h3> | 210 | <h3>3.3.2 Blocking input</h3> |
211 | 211 | ||
@@ -218,7 +218,7 @@ For an example see <a href="../examples/password_input.lua.html"><code>examples/ | |||
218 | </div> <!-- id="main" --> | 218 | </div> <!-- id="main" --> |
219 | <div id="about"> | 219 | <div id="about"> |
220 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 220 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
221 | <i style="float:right;">Last updated 2024-12-18 02:50:03 </i> | 221 | <i style="float:right;">Last updated 2025-03-02 19:43:40 </i> |
222 | </div> <!-- id="about" --> | 222 | </div> <!-- id="about" --> |
223 | </div> <!-- id="container" --> | 223 | </div> <!-- id="container" --> |
224 | </body> | 224 | </body> |