I am searching for a cross-platform way to access the controlling terminal in Go:
On unix I can open /dev/tty
:
tty, err := os.OpenFile("/dev/tty", os.O_RDONLY, 0)
and read from tty
.
How can read from the controlling terminal in Windows?
I am searching for a cross-platform way to access the controlling terminal in Go:
On unix I can open /dev/tty
:
tty, err := os.OpenFile("/dev/tty", os.O_RDONLY, 0)
and read from tty
.
How can read from the controlling terminal in Windows?