/dev/tty in windows

W

Wybo Dekker

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?
 
R

Ralph \PJPizza\ Siegler

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?




file.open("COM1:")


Ralph "PJPizza" Siegler
 
G

Guillaume Marcais

file.open("COM1:")

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top