X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 4 Dec 2012 09:33:53 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: isatty gives wrong result via ssh
Message-ID: <20121204083353.GC12222@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <50B385F9.80103@kouptsov.com> <20121126160446.GB3800@calimero.vinschen.de> <50B79229.9020304@kouptsov.com> <20121203084357.GC2556@calimero.vinschen.de> <50BD0280.4070707@kouptsov.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <50BD0280.4070707@kouptsov.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Dec  3 14:50, Konstantin Kouptsov wrote:
> >> Presumably, here, I should be using a Unix-like console control
> >> interface, and link against ncurses port, provided with Cygwin.
> > 
> > You can't link Cygwin libs against native Windows applications.
> > They require the Cygwin DLL to run.
> 
> Is there a way to compile a dynamic library from within Cygwin (using gcc etc.), which itself would use the Cygwin DLL, ncurses port ans whatever else it needs, but which would have an interface so that a native Windows app would be able to load it?

As cgf mentioned, no.  And in a way it doesn't make sense.  If you link
against Cygwin libs, why don't you just create a Cygwin application
(apart from the obvious licensing issues)?

What you *can* do is to find a native ncurses implementation on the net,
or, which is much less work and just a little bit more effort code-wise,
use some libtermcap with a termcap file.  Building libtermcap natively
should be pretty simple anyway.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

