1. Re: Redirection and Screen I/O -Reply
- Posted by Tim Hansell <HANSELLT at CEDARNET.CEDARVILLE.EDU> Jan 23, 1997
- 1017 views
> well i'm not exactly sure what you're trying to do... > why don't you > want to use just normal output??? As I said, I want to write a program which writes to the screen. I know that if output is not redirected using fileno 1 (which is the file number for standard output) will write to the screen. What I am trying to do is to write to the screen EVEN IF output is redirected. I am trying to do this by use open() to open a fileno on device "CON". I have done this in other languages - TP is particular - so I know that IT SHOULD work. But what I don't know is exactly what the Euphoria interpreter does to open fileno 1, and why when I do this SCREEN = open( "CON", "w") the program does not behave the same way. The implication in the documenation is that you can use the device names in the open() function to open the devices directly. And the implication is that IF I/O IS NOT REDIRECTED that fileno 1 really points to device CON. Thanks for the advice regarding memory pokes. I may have to go to that. I just wanted to avoid it unless absolutely necessary. ...oooO MikPos of MARTYR Oooo... ..ooO http://www.geocities.com/SoHo/9036 Ooo.. ....oooO mike burrell OOooo....