diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-03-14 18:37:56 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-03-14 18:37:56 -0700 |
commit | 2662b1afedd328a0d59dafd0aa028d126b087f2c (patch) | |
tree | 96cede03662b3e7475d1088c89bfa3988e9aa9e7 /doc/manual.html | |
parent | 5e976554dd933842b46eeb8a8e451b9fd3d4cabe (diff) | |
download | teliva-2662b1afedd328a0d59dafd0aa028d126b087f2c.tar.gz |
.
Diffstat (limited to 'doc/manual.html')
-rw-r--r-- | doc/manual.html | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/doc/manual.html b/doc/manual.html index 01c00db..5721704 100644 --- a/doc/manual.html +++ b/doc/manual.html @@ -3602,7 +3602,8 @@ idiomatic Teliva uses some slightly different primitives. <p> This function opens a file exclusively for reading, and returns a <code>channel</code> (NOT a file as in Lua) or <b>nil</b> on error. -<code>recv()</code> from the channel to read a line at a time from the file. +<a href='#pdf-channel:recv'><code>recv</code></a> from the channel to read a +line at a time from the file. <p> (The <code>fs</code> parameter is currently unused. It will be used to pass in @@ -3612,11 +3613,11 @@ fake file systems for tests.) <hr><h3><a name="pdf-character_by_character"><code>character_by_character(chanin, chanout)</code></a></h3> <p> -This function converts a channel that can <code>recv()</code> a line at a time -from a file into a channel that can <code>recv()</code> a character at a time. -Don't try to mix by-line reads with by-character reads. Once a channel is -passed into <code>character_by_character</code>, calling code should stop trying -to use it. +This function converts a channel that can <a href='#pdf-channel:recv'><code>recv</code></a> +a line at a time from a file into a channel that can <a href='#pdf-channel:recv'><code>recv</code></a> +a character at a time. Don't try to mix by-line reads with by-character reads. +Once a channel is passed into <code>character_by_character</code>, calling +code should stop trying to use it. <p> @@ -3625,9 +3626,9 @@ to use it. <p> This function opens a file exclusively for writing, and returns a <code>channel</code> (NOT a file as in Lua) or <b>nil</b> on error. -<code>send()</code> to the channel will write to the file. <code>close()</code> on the -channel will persist the changes and make them externally visible. All writes -are hidden until <code>close()</code>. +<a href='#pdf-channel:send'><code>send</code></a> to the channel to write to +the file. <code>close</code> on the channel will persist the changes and make +them externally visible. All writes are hidden until <code>close</code>. <p> (The <code>fs</code> parameter is currently unused. It will be used to pass in |