delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/04/06:38:23

From: cgf AT bbc DOT com (Chris Faylor)
Subject: Re: /dev/tty?
4 Nov 1997 06:38:23 -0800 :
Message-ID: <EJ4KFB.1q2.cygnus.gnu-win32@bbc.com>
References: <3 DOT 0 DOT 1 DOT 32 DOT 19971104065904 DOT 009244a0 AT zip DOT com DOT au>
Reply-To: cgf AT bbc DOT com
To: gnu-win32 AT cygnus DOT com

In article <3 DOT 0 DOT 1 DOT 32 DOT 19971104065904 DOT 009244a0 AT zip DOT com DOT au>,
raf  <raf2 AT zip DOT com DOT au> wrote:
>hi,
>
>what do you do when fopen("/dev/tty", "r") doesn't work?
>i tried "ln -s /dev/conin /dev/tty" but /dev/conin (the output
>of 'tty') doesn't exist.

Try this instead:

	mount con /dev/tty

That worked for me.

Btw, I've just submitted a patch to make cygwin do this by default.
-- 
http://www.bbc.com/	cgf AT bbc DOT com			"Strange how unreal
VMS=>UNIX Solutions	Boston Business Computing	 the real can be."
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019