diff options
author | Steve Bennett <steveb@workware.net.au> | 2009-07-27 16:51:23 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2010-10-15 10:11:01 +1000 |
commit | 2d93bc0652eab1ad2c1b88b7100856adcf3881ad (patch) | |
tree | cf7706c8db7f054c3d40c26ff0ed1aecc1fc4845 | |
parent | 329b82266ff8480724920df39b04fe8459e71cab (diff) | |
download | jimtcl-2d93bc0652eab1ad2c1b88b7100856adcf3881ad.zip jimtcl-2d93bc0652eab1ad2c1b88b7100856adcf3881ad.tar.gz jimtcl-2d93bc0652eab1ad2c1b88b7100856adcf3881ad.tar.bz2 |
Add stdio read command
-rw-r--r-- | stdio.tcl | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -16,7 +16,6 @@ set stdio::stderr [aio.open standard error] set stdio::std_channel_map [list stdin ${stdio::stdin} stdout ${stdio::stdout} stderr ${stdio::stderr}] proc stdio::std_channel {channel} { - global _stdmap return [string map ${::stdio::std_channel_map} $channel] } @@ -62,6 +61,10 @@ proc flush {channel} { [stdio::std_channel $channel] flush } +proc read {channel args} { + [stdio::std_channel $channel] read {expand}$args +} + proc seek {channel args} { [stdio::std_channel $channel] seek {expand}$args } |