summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroehhar <harald.oehlmann@elmicron.de>2023-11-20 16:56:42 (GMT)
committeroehhar <harald.oehlmann@elmicron.de>2023-11-20 16:56:42 (GMT)
commit58e9be5c93e7ba24244b3bec45a25ae42bffbed5 (patch)
treed8874b4d6d88e5bc302744ba2942ea6cdead5144
parent3516a53c8cd5a94e85ab327239a303ec39ff0767 (diff)
parent52e8a706727c83e06fe9ef2a02b24e9223a702ba (diff)
downloadtcl-58e9be5c93e7ba24244b3bec45a25ae42bffbed5.zip
tcl-58e9be5c93e7ba24244b3bec45a25ae42bffbed5.tar.gz
tcl-58e9be5c93e7ba24244b3bec45a25ae42bffbed5.tar.bz2
fcopy doc: some refinments
-rw-r--r--doc/fcopy.n12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/fcopy.n b/doc/fcopy.n
index 307f40f..9f7c218 100644
--- a/doc/fcopy.n
+++ b/doc/fcopy.n
@@ -35,13 +35,13 @@ profile is set to
and the input encoding matches the output encoding.
In this case, eventual encoding errors are not handled.
An eventually given size is in bytes in this case.
-This feature exists for TCL 8 compatibility.
-.PP
-.SS "BACKGROUND OPERATION MODE"
+.
+.SS "BLOCKING OPERATION MODE"
Without the \fB\-command\fR option, \fBfcopy\fR blocks until the copy is complete
and returns the number of bytes or characters (using the same rules as
for the \fB\-size\fR option) written to \fIoutchan\fR.
-.PP
+.
+.SS "BACKGROUND OPERATION MODE"
The \fB\-command\fR argument makes \fBfcopy\fR work in the background.
In this case it returns immediately and the \fIcallback\fR is invoked
later when the copy completes.
@@ -167,7 +167,7 @@ proc CopyMore {in out chunk bytes {error {}}} {
close $out
} else {
\fBfcopy\fR $in $out -size $chunk \e
- -command [list CopyMore $in $out $chunk]
+ -command [list CopyMore $in $out $chunk]
}
}
set in [open $file1]
@@ -175,7 +175,7 @@ set out [socket $server $port]
set chunk 1024
set total 0
\fBfcopy\fR $in $out -size $chunk \e
- -command [list CopyMore $in $out $chunk]
+ -command [list CopyMore $in $out $chunk]
vwait done
.CE
.PP