delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/13/16:14:36

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Date: Sun, 13 Dec 2009 13:14:20 -0800
From: Gary Johnson <garyjohn AT spocom DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Looking for the 'stdout' of a Windows application
Message-ID: <20091213211419.GA5236@KCJs-Computer>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <26769438 DOT post AT talk DOT nabble DOT com>
Mime-Version: 1.0
In-Reply-To: <26769438.post@talk.nabble.com>
User-Agent: Mutt/1.4.2.2i
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On 2009-12-13, Marc Girod wrote:
> Hello,
> 
> I run a proprietary application, IBM Rational cleartool.exe from cygwin.
> In some usage scenarios which I am now interested in, it prompts the user
> for an interactive decision.
> I do not get this prompt under cygwin (either X --emacs shell or xterm-- or
> the Cygwin terminal.
> My process just hangs.
> I get it in the Windows Command Prompt, in plain text mode, and I can reply
> there.

The problem is that cleartool was written to run in a Windows
console, not in the kind of pty terminal interface that Unix
terminals and the Cygwin rxvt and xterm terminals provide.  Some
cleartool commands just print to stdout, and those will work fine in
a pty terminal.  When cleartool prompts for user input, however, it
uses the Console interface, which doesn't work in a pty.

There was a thread about this issue in this list in March 2008.

What I've done is to write a wrapper bash script around cleartool
that "intercepts" commands that require user input and either
manages the user input dialog itself or prints a message telling the
user to use a Windows Command Prompt or use a non-interactive form
of the command.

Regards,
Gary



--
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

- Raw text -


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