summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2007-07-03 20:25:19 (GMT)
committerdgp <dgp@users.sourceforge.net>2007-07-03 20:25:19 (GMT)
commit29d839c66350a85dfb6fa8db262a49ff416fa3f6 (patch)
tree2d04a7a0d1d19ea6a8ef98538f7d1c50b33346a1 /doc
parent4aa04335f814476845ecd74475da4fb23799b2fc (diff)
downloadtcl-29d839c66350a85dfb6fa8db262a49ff416fa3f6.zip
tcl-29d839c66350a85dfb6fa8db262a49ff416fa3f6.tar.gz
tcl-29d839c66350a85dfb6fa8db262a49ff416fa3f6.tar.bz2
merge updates from HEAD
Diffstat (limited to 'doc')
-rw-r--r--doc/chan.n5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/chan.n b/doc/chan.n
index 0dabbd6..aeaede2 100644
--- a/doc/chan.n
+++ b/doc/chan.n
@@ -4,7 +4,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: chan.n,v 1.9 2007/02/18 18:42:54 dkf Exp $
+'\" RCS: @(#) $Id: chan.n,v 1.9.2.1 2007/07/03 20:25:23 dgp Exp $
.so man.macros
.TH chan n 8.5 Tcl "Tcl Built-In Commands"
.BS
@@ -330,6 +330,7 @@ returned as the result of the \fBchan create\fR command, and the
channel is open. Use either \fBclose\fR or \fBchan close\fR to remove
the channel.
.RS
+.PP
The argument \fImode\fR specifies if the new channel is opened for
reading, writing, or both. It has to be a list containing any of the
strings "\fBread\fR" or "\fBwrite\fR". The list must have at least one
@@ -513,6 +514,7 @@ occurred. The argument has to be a list containing any of the strings
element as it does not make sense to invoke the command if there are
no events to post.
.RS
+.PP
Note that this subcommand can only be used with channel handles that
were created/opened by \fBchan create\fR. All other channels will
cause this subcommand to report an error.
@@ -687,6 +689,7 @@ omitted). The channel is flushed before truncation.
This opens a file using a known encoding (CP1252, a very common encoding
on Windows), searches for a string, rewrites that part, and truncates the
file after a further two lines.
+.PP
.CS
set f [open somefile.txt r+]
\fBchan configure\fR $f -encoding cp1252