Date: Tue, 13 Nov 2001 17:53:51 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: ROLAND Message-Id: <3791-Tue13Nov2001175351+0200-eliz@is.elta.co.il> X-Mailer: emacs 21.1.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <20011113132352.13408.qmail@web9101.mail.yahoo.com> (message from ROLAND on Tue, 13 Nov 2001 05:23:52 -0800 (PST)) Subject: Re: Problems with sgtty.h, ioctl.h and termios.h References: <20011113132352 DOT 13408 DOT qmail AT web9101 DOT mail DOT yahoo DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Tue, 13 Nov 2001 05:23:52 -0800 (PST) > From: ROLAND > > > > Yes, you can use "#ifndef __DJGPP__". > > Then if UNIX needs all of this and uses /dev/tty0, > what is used on a PC as the terminal?? The DOS name for the terminal device is "CON". DJGPP supports "/dev/tty" as well (it transparently replaces it with "CON" when it calls DOS functions), so you can leave code that refers to "/dev/tty" intact. But "/dev/tty0" will not work. > I was looking in some more code, and found some links > to /dev/tty0, do I have to replace those with > something else? Replace them either with "/dev/tty" or with "CON".