1. Re: Redirection and Screen I/O -Reply

> 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....

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu