This is the mail archive of the
cygwin
mailing list for the Cygwin project.
How can an MSVC app tell it's running in a Cygwin rxvt window?
- From: Stefan Vorkoetter <svorkoetter at maplesoft dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 1 Feb 2005 21:41:35 +0000 (UTC)
- Subject: How can an MSVC app tell it's running in a Cygwin rxvt window?
We have an application which can run in a command-line driven mode. For Windows,
the app is compiled with MSVC. However, some of our users (including some people
in-house) like to use it from within a Cygwin shell. It works fine in a bash
running in a Windows console window, but not when running under rxvt. The
problem there is that Microsoft's isatty(0) call is returning false.
Does anyone know how to get an app compiled with MSVC to figure out that its
running in bash within rxvt?
Thanks,
Stefan Vorkoetter
Maplesoft
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/