From: "Charles Sandmann" Newsgroups: comp.os.msdos.djgpp Subject: Re: Problems with sgtty.h, ioctl.h and termios.h Date: Wed, 14 Nov 2001 10:14:07 Organization: Aspen Technology, Inc. Lines: 18 Message-ID: <3bf243ef.sandmann@clio.rice.edu> References: NNTP-Posting-Host: dcloan.hou.aspentech.com X-Trace: selma.aspentech.com 1005754861 32451 10.32.115.107 (14 Nov 2001 16:21:01 GMT) X-Complaints-To: postmaster AT aspentech DOT com NNTP-Posting-Date: 14 Nov 2001 16:21:01 GMT X-NewsEditor: ED-1.5.8 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > I won't recommend this change for Unix; it's better to make the string be > system-dependent, like this: > > #ifdef __DJGPP__ > #define TTY "/dev/tty" > #else > #define TTY "/dev/tty0" > #endif > > Then modify the sources to use TTY instead of "/dev/tty0". I'm not sure what the program is trying to do, but I doubt if this is correct. /dev/tty0 will usually be a serial line on a Unixy system - where a terminal, modem or some peripheral is located. /dev/tty will be the current login console (keyboard/monitor - may be a window under a desktop, etc). I am guessing this code needs to talk to "COM1" on the PC - in which case there's a whole bunch of coding needed to make this work.