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 X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: Andrew DeFaria Subject: Re: Getting "cleartool" prompts to work in Cygwin Date: Wed, 28 May 2003 14:28:16 -0700 Lines: 30 Message-ID: References: <0C260F619E428642BFA6380177C3ADF3377278 AT exmsea005 DOT us DOT wamu DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT main DOT gmane DOT org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030515 Thunderbird/0.1a X-Accept-Language: en-us, en In-Reply-To: <0C260F619E428642BFA6380177C3ADF3377278@exmsea005.us.wamu.net> Karr, David wrote: >Uname -a: CYGWIN_NT-5.1 WG44KA2G55H 1.3.22(0.78/3/2) 2003-03-18 09:20 >i686 unknown unknown Cygwin > >The "cleartool" application (part of ClearCase) will often present >question prompts in normal operation, to confirm certain operations. >When I execute these commands in a DOS box, it works fine. > >However, when I execute this in a Bash shell in RXVT, at the point >where it would issue the prompt, it just sits there doing nothing. If I >then press Return, it immediately emits the prompt message, and then >takes that as my response. If instead of pressing Return, I first type >an expected response and press Return, then it takes that as my >response, which is an acceptable workaround (if I know what the prompt >says). > >If this Bash shell is inside XEmacs, however, when I press Return at the >invisible prompt, it takes my response and then kills the Bash shell >it's running in. :( > >Is there a strategy I can use to get it to work the same way it does in >a DOS box, printing the entire prompt message, and exiting normally? > No. The problem is that cleartool is written for Windows (i.e. DOS or cmd) which does not use ptys. rxvt, and apparently XEmacs both use ptys. The only solution is to get Rational to fix cleartool (or to use a DOS box - or to specify all parameters on the command line so that there is no prompting). -- 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/