delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/15/12:16:05

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 15 Sep 2010 12:15:32 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: ssh from linux to cygwin + CUI + Ctrl-C
Message-ID: <20100915161532.GA5729@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <AANLkTi=CvtJmarzhczDOu5k=pE2MsUe=YBiLNH=og0z0 AT mail DOT gmail DOT com> <4C8FB7B6 DOT 1030300 AT gmail DOT com> <AANLkTinDHQfi=S0_cS4YKOg=i1BZa61ydLUD1XRBXdcK AT mail DOT gmail DOT com> <4C90E6C4 DOT 9050503 AT gmail DOT com> <4C90EA96 DOT 6060307 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <4C90EA96.6060307@gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
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 Wed, Sep 15, 2010 at 11:47:34PM +0800, Chan Kar Heng wrote:
>Chan Kar Heng wrote:
>> I use cygwin to ssh into numerous systems very often, such as AIX, HP 
>> UX, Solaris, DEC Alpha. I've always managed to send ctrl-c (by pressing 
>> ctrl-]) to the app running on that platform. There was only 1 rare case 
>> when it didn't.
>> Not sure what you mean by "native" apps... If you could clarify?
>> 
>> KarHeng
>> 
>> Ilia K. wrote:
>>> On Tue, Sep 14, 2010 at 7:58 PM, Chan Kar Heng <chankarheng AT gmail DOT com> 
>>> wrote:
>>>> Hi there.
>>>>
>>>> I've had the same problem in the past.
>>>> Posted a temporary solution here:
>>>>
>>>> http://www.cygwin.com/ml/cygwin/2009-02/msg00403.html
>>>
>>> This is an interesting hack, but unfortunately it won't work for
>>> "native" apps, only for cygwin-linked.
>
>For those native apps, perhaps you can try sending SIGINT to that CUI 
>app using kill?

This won't work for the reason I previously mentioned.

>Else, find a Windows app that is capable of pushing a Ctrl-C into the
>keyboard buffer.  If you know some programming, it's not difficult to
>write if you know the correct APIs to call.

That might work if the windows process is expecting input but it
probably will fail otherwise.

cgf

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