delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-Id: | <200011202310.PAA27631@capella.ssd.hal.com> |
Subject: | Re: ncurses/terminfo problems |
To: | cygwin AT sourceware DOT cygnus DOT com (Cygwin Mailing List) |
Date: | Mon, 20 Nov 2000 15:10:34 -0800 (PST) |
In-Reply-To: | <200011191705.TAA03135@linux.> from "Ehud Karni" at Nov 19, 2000 07:05:02 PM |
From: | "J. J. Farrell" <jjf AT bcs DOT org DOT uk> |
X-Mailer: | ELM [version 2.5 PL3] |
MIME-Version: | 1.0 |
> From: "Ehud Karni" <ehud AT unix DOT simonwiesel DOT co DOT il> > > 1. No support for the ioctl call with TCGETS/TCSETS to get/set > termios structure onto terminals in cygwin. > Solution: > It seems that with cygwin ncurses TCGETA/TCSETA does exactly what I > used to do with TCGETS/TCSETS. In the Linux ioctl_list man page > TCGETS/TCSETS works on termios structure while TCGETA/TCSETA work on > termio structure. In the cygwin porting termio and termios are > exactly the same. > Required action: Defining TCGETS and TCSETS to be the same as TCGETA and > TCSETS on the cygwin porting, Adding the above facts to the FAQ, > README and the ioctl man page (which is missing in cygwin). The TCGETS/termios.h and related ioctls are part of an old non-Standard interface to tty ports; they were an expansion of the even older TCGETA/termio.h family. Your best bet for maximum portability would be to change the code to use the tc*() interfaces (tcgetattr()/tcsetattr() in this case) which were Standardized by POSIX.1 in 1988. If anyone wanted to bother, termios.h could be implemented to map its definitions on to termio.h if they match in this implementation (though the type names of the members of the structures are usually different even if they're the same size). If implemented, I don't think it should be mentioned in FAQs, READMEs and so on since it's a transparent implementation detail which could be changed at any time. I'm not convinced it's worth doing since the Standard interface to this functionality has been widely implemented for over a decade, though if you fancied doing it I'm sure your patches would be considered. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |