1. Re: Redirection and Screen I/O -Reply
- Posted by Tim Hansell <HANSELLT at CEDARNET.CEDARVILLE.EDU> Jan 23, 1997
- 1060 views
>Euphoria handles screen writes via standard output and > screen writes via "CON" a bit differently. It detects > when writes to standard output are really going to the > screen, and it modifies the output a bit by expanding tabs > to blanks, and taking care of the line-wrap on/off feature (see > wrap()). If you write to CON these things are not > handled by Euphoria, you have to accept whatever DOS > normally does. Also, writes to the screen via standard > output happen immediately. > Writes via CON are buffered until a '\n' comes along. e.g. > > Regards, > Rob Craig > Rapid Deployment Software Okay. So the problem is really inside of the interpreter and assumptions that have been made regarding what the program is going to want to do. 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. In my Turbo pascal programs, I had to specify that the I/O not be buffered for the particular file I opened on the CONSOLE. Thanks for the info. It explains what I had already suspected but could not find documented anywhere. -tim