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 To: cygwin AT cygwin DOT com From: Stefan Vorkoetter Subject: How can an MSVC app tell it's running in a Cygwin rxvt window? Date: Tue, 1 Feb 2005 21:41:35 +0000 (UTC) Lines: 12 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 205.211.164.226 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0) X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-MailScanner-From: goc-cygwin AT m DOT gmane DOT org X-MailScanner-To: cygwin AT cygwin DOT com X-IsSubscribed: yes 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/