summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2005-06-06 23:45:37 (GMT)
committerdkf <dkf@noemail.net>2005-06-06 23:45:37 (GMT)
commit094b812b2f8252d097a12262d5752fd7381ebaad (patch)
tree374c84c5df35cf33d6fe30319969eb01c100c078 /library
parent0e68f020697c0ba13ea15c482bb21741b81c8a8c (diff)
downloadtcl-094b812b2f8252d097a12262d5752fd7381ebaad.zip
tcl-094b812b2f8252d097a12262d5752fd7381ebaad.tar.gz
tcl-094b812b2f8252d097a12262d5752fd7381ebaad.tar.bz2
TIP#208 implementation
It's crude (especially in the tests and docs department) and incomplete (no truncation on non-POSIX platforms). FossilOrigin-Name: 3280056391a69ec28c5ea78944729c2ada97777e
Diffstat (limited to 'library')
-rw-r--r--library/init.tcl22
1 files changed, 21 insertions, 1 deletions
diff --git a/library/init.tcl b/library/init.tcl
index 0623488..d93a653 100644
--- a/library/init.tcl
+++ b/library/init.tcl
@@ -3,7 +3,7 @@
# Default system startup file for Tcl-based applications. Defines
# "unknown" procedure and auto-load facilities.
#
-# RCS: @(#) $Id: init.tcl,v 1.76 2005/05/24 19:13:45 dgp Exp $
+# RCS: @(#) $Id: init.tcl,v 1.77 2005/06/06 23:45:46 dkf Exp $
#
# Copyright (c) 1991-1993 The Regents of the University of California.
# Copyright (c) 1994-1996 Sun Microsystems, Inc.
@@ -72,6 +72,26 @@ namespace eval tcl {
lappend Path $Dir
unsupported::EncodingDirs $Path
}
+
+ # Set up the 'chan' ensemble
+ namespace eval chan {
+ namespace ensemble create -command ::chan -map {
+ blocked ::fblocked
+ close ::close
+ configure ::fconfigure
+ copy ::fcopy
+ eof ::eof
+ event ::fileevent
+ flush ::flush
+ gets ::gets
+ names {::file channels}
+ puts ::puts
+ read ::read
+ seek ::seek
+ tell ::tell
+ truncate ::tcl::chan::Truncate
+ }
+ }
}
# Windows specific end of initialization