Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Type: text/plain; charset="iso-8859-1" From: =?iso-8859-1?q?Bj=F6rn=20Giesler?= To: cygwin AT cygwin DOT com Subject: Console input in xterm from NT program? Date: Wed, 1 Jan 2003 14:54:25 +0100 User-Agent: KMail/1.4.2 MIME-Version: 1.0 Message-Id: <200301011454.25496.giesler@ira.uka.de> X-Sender: 520086818671-0001 AT t-dialin DOT net Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h01Dt0G25420 Hi, I've written a small command-line class (editing, history, command completion etc.). That requires cursor positioning and reading of single characters. It works quite well under Linux (with tcsetattr() and escape sequences) and in NT console windows (using the WinNT console API from wincon.h). The program gets compiled with GCC under Linux and with VC++ under Windows. The problem is that the NT console API doesn't work in Cygwin xterm windows at all (probably because I'd have to switch them to non-line-buffered mode), but I don't have access to tcsetattr() since VC++ doesn't have that. The result is that I don't get any input at all on the NT/Cygwin-xterm combination. But I'd like the command line to work in all three contextes. Can anybody tell me what I'm missing here, or is there any magical control sequence that I could send the xterm that toggles line-buffered mode? Thanks in advance, --Björn -- Dipl.-Inform. Björn Giesler, IAIM, University of Karlsruhe (TH) See http://wwwiaim.ira.uka.de/users/giesler for information. A society that will trade a little freedom for a little order will lose both, and deserves neither. --T. Jefferson Support privacy. Mail me for my PGP/GPG public key. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/