delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/01/16:51:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <svorkoetter AT maplesoft DOT com>
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: <loom.20050201T223834-283@post.gmane.org>
Mime-Version: 1.0
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019