aboutsummaryrefslogtreecommitdiff
path: root/docs/topics/03-terminal.md.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/topics/03-terminal.md.html')
-rw-r--r--docs/topics/03-terminal.md.html10
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>.
202sys.<span class="function-name">setnonblock</span>(<span class="global">io</span>.stdin, <span class="keyword">true</span>) 202sys.<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
206code to be written. Since the underlying sleep method used is <a href="../modules/system.html#sleep">system.sleep</a>, just patching 206code to be written. The underlying sleep method to use can be provided, and defaults to <a href="../modules/system.html#sleep">system.sleep</a>.
207that function with a coroutine based yielding one should be all that is needed to make 207Just passing a coroutine enabled sleep method should be all that is needed to make
208the result work with asynchroneous coroutine schedulers.</p> 208the 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>