/dev/tty in windows

under linux I use

STDIN.reopen('/dev/tty')

what is the equivalent for Windows?

And where can I find documentation about the differences between OS's?

···

--
Wybo

file.open("COM1:")

Ralph "PJPizza" Siegler

···

On Thu, Jun 23, 2005 at 11:09:14PM +0900, Wybo Dekker wrote:

under linux I use

STDIN.reopen('/dev/tty')

what is the equivalent for Windows?

And where can I find documentation about the differences between OS's?

--
Wybo

Ralph "PJPizza" Siegler wrote:

under linux I use

STDIN.reopen('/dev/tty')

what is the equivalent for Windows?

And where can I find documentation about the differences between
OS's?

--
Wybo

file.open("COM1:")

That's the serial port if I'm not mistaken. I'd try "CON" or "CON:".

Kind regards

    robert

···

On Thu, Jun 23, 2005 at 11:09:14PM +0900, Wybo Dekker wrote:

Ralph "PJPizza" Siegler

Hum... no, that would be file.open("/dev/ttyS0"). /dev/tty is the
console, not the serial port.

That said, I don't know the answer to the original question, sorry.

Guillaume.

···

On Thu, 2005-06-23 at 23:17 +0900, Ralph "PJPizza" Siegler wrote:

On Thu, Jun 23, 2005 at 11:09:14PM +0900, Wybo Dekker wrote:
> under linux I use
>
> STDIN.reopen('/dev/tty')
>
> what is the equivalent for Windows?
>
> And where can I find documentation about the differences between OS's?
>
> --
> Wybo
>

file.open("COM1:")

that's it, either CON or CON:
Thanks!

···

On Thu, 23 Jun 2005, Robert Klemme wrote:

Ralph "PJPizza" Siegler wrote:
> On Thu, Jun 23, 2005 at 11:09:14PM +0900, Wybo Dekker wrote:
>> under linux I use
>>
>> STDIN.reopen('/dev/tty')
>>
>> what is the equivalent for Windows?
>>
>> And where can I find documentation about the differences between
>> OS's?
>>
>> --
>> Wybo
>>
>
>
>
>
> file.open("COM1:")

That's the serial port if I'm not mistaken. I'd try "CON" or "CON:".

--
Wybo

yup, that's serial port, sorry, been doing headless Linux too much :stuck_out_tongue:

···

On Fri, Jun 24, 2005 at 12:31:09AM +0900, Wybo Dekker wrote:

On Thu, 23 Jun 2005, Robert Klemme wrote:

> Ralph "PJPizza" Siegler wrote:
> > On Thu, Jun 23, 2005 at 11:09:14PM +0900, Wybo Dekker wrote:
> >> under linux I use
> >>
> >> STDIN.reopen('/dev/tty')
> >>
> >> what is the equivalent for Windows?
> >>
> >> And where can I find documentation about the differences between
> >> OS's?
> >>
> >> --
> >> Wybo
> >>
> >
> >
> >
> >
> > file.open("COM1:")
>
> That's the serial port if I'm not mistaken. I'd try "CON" or "CON:".

that's it, either CON or CON:
Thanks!
--
Wybo