1. Re: Redirection and Screen I/O -Reply
- Posted by Robert Craig <72614.1667 at COMPUSERVE.COM> Jan 23, 1997
- 1034 views
- Last edited Jan 24, 1997
Tim Hansell writes: > I would suggest an enhancement that would allow writes to CON to > operate under the same assumptions that writes to the screen via > standard out. Perhaps you could create another file number which is > ALWAYS connected to the screen. File number 2 (standard error) is always connected to the screen, and goes through the same line-wrap/no buffering/expand-tabs logic as file 1 (standard output) does when standard output is going to the screen. You can prove that this is true by changing vars.e in demo\langwar so that global constant CRT is set to 2 instead of 1. All screen output will go through file 2 and the game will run exactly the same, at exactly the same speed. You're right that this stuff isn't documented very well. Regards Rob Craig Rapid Deployment Software