delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/15/18:37:22

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
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 AT cygwin DOT com
From: Mark Geisert <mark AT maxrnd DOT 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 DOT 20150415T025305-586 AT post DOT gmane DOT org> <20150415073302 DOT GU7343 AT calimero DOT vinschen DOT de> <loom DOT 20150415T192545-607 AT post DOT gmane DOT org> <loom DOT 20150415T235154-323 AT post DOT gmane DOT org> <loom DOT 20150416T002022-221 AT post DOT gmane DOT org>
Mime-Version: 1.0
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

- Raw text -


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