[tcljava-dev] Channel mapping for stdin, stdout, etc.
Brought to you by:
mdejong
From: David L. Smith-U. <da...@ig...> - 2001-04-21 05:15:57
|
Hmmm....Looking back through the mailing list archive there was a bug 221678 which asserts that the channels for standard in, out and err should have dual names stdin/file0 stdout/file1 stderr/file2. It seems as though there's a problem with channels having dual names and error reporting. However, there's a deeper problem and that is that there is no way to have stdin, stdout and stderr attach to anything except System.in, System.out and System.err since the StdChannel implementation is hardwired into TclIO. Since I want to imbed Tcl inside of my shell and control where the I/O goes (and I'd like to be able to have it go different places for each Tcl instance so simply setting System.in, etc. doesn't work for me) I'd like to undo the hardwiring inside of TclIO and let the channel assignment be overriden. Also, is there a requirement that stdin == file0, etc? Is this an alias? Cheers, Dave David L. Smith-Uchida Head Geek iGeek, Inc. Japan voice/fax: +81-3-5701-0955 US voice/fax: +1-877-384-7509 da...@ig... http://www.igeekinc.com |