delorie.com/archives/browse.cgi | search |
From: | "Charles Sandmann" <sandmann AT clio DOT rice DOT edu> |
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: | <Pine DOT SUN DOT 3 DOT 91 DOT 1011114133052 DOT 2827E-100000 AT is> |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |