X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=O0RXPnPw0svAdPHhZDbIyuRn4kNW/6DZnUoNOD2aWLLWWQ3d21dJ5
	l5E1uFOHLITsb3bw+jOubq6/vEAQMbdPkjLNk4RPHApoJEfDYH+o91jtiQdSbThy
	YxIIdHjM1AoUgOUAKdIEbEhLfajph7h/zlcQchbSWxK/vnozQZ01ds=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=lZ5QSaUCxrvEa/nCru3mKoHm6Jo=; b=OT1J7Z/lpqzDszVMcnt63TaZ2x1n
	v403VtnN/UVVdzUQL9kD23ARoorv9DmJDbAcsLuKrfu7dD/16hjFf0q/kkJVJ0S1
	KVzTi32Nr8yBGEE+/+1vNicxaTjK1JrG8et6JE8/USTk1GlWD3mO2Ucif3tg0EjF
	/YTwFPlQB5PigcU=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.9 required=5.0 tests=AWL,BAYES_00,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2
X-HELO: plane.gmane.org
To: cygwin@cygwin.com
From: Mark Geisert <mark@maxrnd.com>
Subject: Re: Cannot change console mode during usage of expect
Date: Wed, 15 Apr 2015 22:36:43 +0000 (UTC)
Lines: 44
Message-ID: <loom.20150416T003558-528@post.gmane.org>
References: <loom.20150415T025305-586@post.gmane.org> <20150415073302.GU7343@calimero.vinschen.de> <loom.20150415T192545-607@post.gmane.org> <loom.20150415T235154-323@post.gmane.org> <loom.20150416T002022-221@post.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Keith Proctor writes:
> Mark Geisert <XXXXXXXXXXXXXX> writes:

Please don't quote email addresses in replies.

> > Keith Proctor writes:
> > > BTW, I expect GetConsoleMode and SetConsoleMode is standard
> > > usage by any console application.  These calls work on Macintosh,
> > > Windows and Cygwin window without expect.
> > 
> > Are you sure you're using the Cygwin expect, and not a Windows-native expect
> > that just happens to be on your path?
> > 
> > ..mark
> > 
> > 
> Typing which expect comes back with /usr/bin/expect.  This appears 
> to be the standard Cygwin location. 
> 
> I did a search for expect on the system before installing Cygwin and
> did not find an executable.  This is a fresh 2k8 R2 VM.  I did not install
> another expect command from another source on the system and 
> DOS does not include an expect functionality that I am aware of.  Web
> shows that I would need to install another package such as HPs
> expect or ActiveState.

Fair enough.  Expect communicates with spawned processes via ptys.  On
Cygwin ptys are implemented as Windows "named pipes".  Perhaps the spawned
process is trying to use those console-related Windows calls on a named pipe
descriptor that it wants to believe is a console's file descriptor.

In your original post you had a code snippet that showed on GetConsoleMode()
failure, I think, an error message was generated.  Is that error message
what's being output, i.e., the name of the Windows call without any other
error information?

I know this subject has come up on the list before.  There is a little shim
one can insert "in front of" a console-oriented application that makes it
think it's talking to a console instead of a pipe.  I can't recall the name
of that shim, though.  Can I get a little help from the list please?

..mark




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

